|  | Home · Overviews · Examples |

# QSpacerItem Class Reference
[com.trolltech.qt.gui module]

The `QSpacerItem` class provides blank space in a layout. More...

Inherits .

## Detailed Description

The `QSpacerItem` class provides blank space in a layout.

Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating empty space in layouts:

Class | Functions
--- | ---
`QHBoxLayout` | addSpacing(), addStretch(), insertSpacing(), insertStretch()
`QGridLayout` | setRowMinimumHeight(), setRowStretch(), setColumnMinimumWidth(), setColumnStretch()

See also `QLayout`, `QWidgetItem`, and `QLayoutItem::spacerItem`.