QSpacerItem Class
The QSpacerItem class provides blank space in a layout. More...
| Header: | #include <QSpacerItem> |
| qmake: | QT += widgets |
| Inherits: | QLayoutItem |
Detailed Description
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().