Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QSpacerItem Class Reference

Inheritance diagram for QSpacerItem:

QLayoutItem

List of all members.


Detailed Description

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 {QBoxLayout::addSpacing()}{addSpacing()}, {QBoxLayout::addStretch()}{addStretch()}, {QBoxLayout::insertSpacing()}{insertSpacing()}, {QBoxLayout::insertStretch()}{insertStretch()} QGridLayout {QGridLayout::setRowMinimumHeight()}{setRowMinimumHeight()}, {QGridLayout::setRowStretch()}{setRowStretch()}, {QGridLayout::setColumnMinimumWidth()}{setColumnMinimumWidth()}, {QGridLayout::setColumnStretch()}{setColumnStretch()}

See also:
QLayout, QWidgetItem, QLayoutItem::spacerItem()

Definition at line 73 of file qlayoutitem.h.


Public Member Functions

Qt::Alignment alignment () const
void changeSize (int w, int h, QSizePolicy::Policy hData=QSizePolicy::Minimum, QSizePolicy::Policy vData=QSizePolicy::Minimum)
Qt::Orientations expandingDirections () const
QRect geometry () const
virtual bool hasHeightForWidth () const
virtual int heightForWidth (int) const
virtual void invalidate ()
bool isEmpty () const
virtual QLayoutlayout ()
QSize maximumSize () const
virtual int minimumHeightForWidth (int) const
QSize minimumSize () const
 QSpacerItem (int w, int h, QSizePolicy::Policy hData=QSizePolicy::Minimum, QSizePolicy::Policy vData=QSizePolicy::Minimum)
void setAlignment (Qt::Alignment a)
void setGeometry (const QRect &)
QSize sizeHint () const
QSpacerItemspacerItem ()
virtual QWidgetwidget ()

Protected Attributes

Qt::Alignment align

Private Attributes

int height
QRect rect
QSizePolicy sizeP
int width

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index