Eneboo - Documentación para desarrolladores
|
The QSpacerItem class provides blank space in a layout. Más...
#include <qlayout.h>
Métodos públicos | |
QSpacerItem (int w, int h, QSizePolicy::SizeType hData=QSizePolicy::Minimum, QSizePolicy::SizeType vData=QSizePolicy::Minimum) | |
void | changeSize (int w, int h, QSizePolicy::SizeType hData=QSizePolicy::Minimum, QSizePolicy::SizeType vData=QSizePolicy::Minimum) |
QSize | sizeHint () const |
QSize | minimumSize () const |
QSize | maximumSize () const |
QSizePolicy::ExpandData | expanding () const |
bool | isEmpty () const |
void | setGeometry (const QRect &) |
QRect | geometry () const |
QSpacerItem * | spacerItem () |
QSpacerItem (int w, int h, QSizePolicy::SizeType hData=QSizePolicy::Minimum, QSizePolicy::SizeType vData=QSizePolicy::Minimum) | |
void | changeSize (int w, int h, QSizePolicy::SizeType hData=QSizePolicy::Minimum, QSizePolicy::SizeType vData=QSizePolicy::Minimum) |
QSize | sizeHint () const |
QSize | minimumSize () const |
QSize | maximumSize () const |
QSizePolicy::ExpandData | expanding () const |
bool | isEmpty () const |
void | setGeometry (const QRect &) |
QRect | geometry () const |
QSpacerItem * | spacerItem () |
The QSpacerItem class provides blank space in a layout.
This class is used by custom layouts.
QSpacerItem::QSpacerItem | ( | int | w, |
int | h, | ||
QSizePolicy::SizeType | hData = QSizePolicy::Minimum , |
||
QSizePolicy::SizeType | vData = QSizePolicy::Minimum |
||
) | [inline] |
Constructs a spacer item with preferred width w, preferred height h, horizontal size policy hData and vertical size policy vData.
The default values provide a gap that is able to stretch if nothing else wants the space.
QSpacerItem::QSpacerItem | ( | int | w, |
int | h, | ||
QSizePolicy::SizeType | hData = QSizePolicy::Minimum , |
||
QSizePolicy::SizeType | vData = QSizePolicy::Minimum |
||
) | [inline] |
void QSpacerItem::changeSize | ( | int | w, |
int | h, | ||
QSizePolicy::SizeType | hData = QSizePolicy::Minimum , |
||
QSizePolicy::SizeType | vData = QSizePolicy::Minimum |
||
) |
Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hData and vertical size policy vData.
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::SizeType | hData = QSizePolicy::Minimum , |
||
QSizePolicy::SizeType | vData = QSizePolicy::Minimum |
||
) |
QSizePolicy::ExpandData QSpacerItem::expanding | ( | ) | const [virtual] |
Returns the direction in which this spacer item will expand.
Implementa QLayoutItem.
QSizePolicy::ExpandData QSpacerItem::expanding | ( | ) | const [virtual] |
Implemented in subclasses to return the direction(s) this item "wants" to expand in (if any).
Implementa QLayoutItem.
QRect QSpacerItem::geometry | ( | ) | const [virtual] |
Implementa QLayoutItem.
QRect QSpacerItem::geometry | ( | ) | const [virtual] |
Returns the rectangle covered by this layout item.
Implementa QLayoutItem.
bool QSpacerItem::isEmpty | ( | void | ) | const [virtual] |
Returns TRUE because a spacer item never contains widgets.
Implementa QLayoutItem.
bool QSpacerItem::isEmpty | ( | void | ) | const [virtual] |
Implemented in subclasses to return whether this item is empty, i.e. whether it contains any widgets.
Implementa QLayoutItem.
QSize QSpacerItem::maximumSize | ( | ) | const [virtual] |
Returns the maximum size of this spacer item.
Implementa QLayoutItem.
QSize QSpacerItem::maximumSize | ( | ) | const [virtual] |
Implemented in subclasses to return the maximum size of this item.
Implementa QLayoutItem.
QSize QSpacerItem::minimumSize | ( | ) | const [virtual] |
Implemented in subclasses to return the minimum size of this item.
Implementa QLayoutItem.
QSize QSpacerItem::minimumSize | ( | ) | const [virtual] |
Returns the minimum size of this spacer item.
Implementa QLayoutItem.
void QSpacerItem::setGeometry | ( | const QRect & | r | ) | [virtual] |
Implemented in subclasses to set this item's geometry to r.
Implementa QLayoutItem.
void QSpacerItem::setGeometry | ( | const QRect & | r | ) | [virtual] |
Stores the spacer item's rect r so that it can be returned by geometry().
Implementa QLayoutItem.
QSize QSpacerItem::sizeHint | ( | ) | const [virtual] |
Implemented in subclasses to return the preferred size of this item.
Implementa QLayoutItem.
QSize QSpacerItem::sizeHint | ( | ) | const [virtual] |
Returns the preferred size of this spacer item.
Implementa QLayoutItem.
QSpacerItem* QSpacerItem::spacerItem | ( | ) | [virtual] |
If this item is a QSpacerItem, it is returned as a QSpacerItem; otherwise 0 is returned. This function provides type-safe casting.
Reimplementado de QLayoutItem.
QSpacerItem * QSpacerItem::spacerItem | ( | ) | [virtual] |
Reimplementado de QLayoutItem.