Home · All Classes · Modules |
The QSpacerItem class provides blank space in a layout. More...
Inherits QLayoutItem.
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() |
Constructs a spacer item with preferred width w, preferred height h, horizontal size policy hPolicy and vertical size policy vPolicy.
The default values provide a gap that is able to stretch if nothing else wants the space.
Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hPolicy and vertical size policy vPolicy.
The default values provide a gap that is able to stretch if nothing else wants the space.
Note that if changeSize() is called after the spacer item has been added to a layout, it is necessary to invalidate the layout in order for the spacer item's new size to take effect.
See also QSpacerItem.invalidate().
Reimplemented from QLayoutItem.expandingDirections().
Reimplemented from QLayoutItem.geometry().
See also setGeometry().
Reimplemented from QLayoutItem.isEmpty().
Returns true.
Reimplemented from QLayoutItem.maximumSize().
Reimplemented from QLayoutItem.minimumSize().
Reimplemented from QLayoutItem.setGeometry().
See also geometry().
Reimplemented from QLayoutItem.sizeHint().
Reimplemented from QLayoutItem.spacerItem().
Returns a pointer to this object.
PyQt 4.9.4 for Windows | Copyright © Riverbank Computing Ltd and Nokia 2012 | Qt 4.8.2 |