QSpacerItem Class Reference
|
QSpacerItem ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum ) | |
void | changeSize ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum ) |
virtual Qt::Orientations | expandingDirections () const |
virtual QRect | geometry () const |
virtual bool | isEmpty () const |
virtual QSize | maximumSize () const |
virtual QSize | minimumSize () const |
virtual void | setGeometry ( const QRect & r ) |
virtual QSize | sizeHint () const |
virtual QSpacerItem * | spacerItem () |
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:
Класс | Функции |
---|---|
QHBoxLayout | addSpacing(), addStretch(), insertSpacing(), insertStretch() |
QGridLayout | setRowMinimumHeight(), setRowStretch(), setColumnMinimumWidth(), setColumnStretch() |
See also QLayout, QWidgetItem, and QLayoutItem::spacerItem().
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().
Переопределено из QLayoutItem::expandingDirections().
Переопределено из QLayoutItem::geometry().
Смотрите также setGeometry().
Переопределено из QLayoutItem::isEmpty().
Возвращает true.
Переопределено из QLayoutItem::maximumSize().
Переопределено из QLayoutItem::minimumSize().
Переопределено из QLayoutItem::setGeometry().
Смотрите также geometry().
Переопределено из QLayoutItem::sizeHint().
Reimplemented from QLayoutItem::spacerItem().
Returns a pointer to this object.
Авторские права © 2010 Nokia Corporation и/или её дочерние компании | Торговые марки | Qt 4.6.4 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |