Member Function Documentation
QSpacerItem::QSpacerItem ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum )
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.
void QSpacerItem::changeSize ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum )
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().
Qt::Orientations QSpacerItem::expandingDirections () const [virtual]
Reimplemented from QLayoutItem::expandingDirections().
QRect QSpacerItem::geometry () const [virtual]
Reimplemented from QLayoutItem::geometry().
See also setGeometry().
bool QSpacerItem::isEmpty () const [virtual]
Reimplemented from QLayoutItem::isEmpty().
Returns true.
QSize QSpacerItem::maximumSize () const [virtual]
Reimplemented from QLayoutItem::maximumSize().
QSize QSpacerItem::minimumSize () const [virtual]
Reimplemented from QLayoutItem::minimumSize().
void QSpacerItem::setGeometry ( const QRect & r ) [virtual]
Reimplemented from QLayoutItem::setGeometry().
See also geometry().
QSize QSpacerItem::sizeHint () const [virtual]
Reimplemented from QLayoutItem::sizeHint().
QSpacerItem * QSpacerItem::spacerItem () [virtual]
Reimplemented from QLayoutItem::spacerItem().
Returns a pointer to this object.