The QWidgetItem class is a layout item that represents a widget. More...
#include <QWidgetItem>
Inherits: QLayoutItem.
QWidgetItem ( QWidget * widget ) |
virtual Qt::Orientations | expandingDirections () const |
virtual QRect | geometry () const |
virtual bool | hasHeightForWidth () const |
virtual int | heightForWidth ( int w ) const |
virtual bool | isEmpty () const |
virtual QSize | maximumSize () const |
virtual QSize | minimumSize () const |
virtual void | setGeometry ( const QRect & rect ) |
virtual QSize | sizeHint () const |
virtual QWidget * | widget () |
The QWidgetItem class is a layout item that represents a widget.
Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating widgets in layouts:
Class | Functions |
---|---|
QBoxLayout | addWidget(), insertWidget(), setStretchFactor() |
QGridLayout | addWidget() |
QStackedLayout | addWidget(), insertWidget(), currentWidget(), setCurrentWidget(), widget() |
See also QLayout, QSpacerItem, and QLayoutItem::widget().
Creates an item containing the given widget.
Reimplemented from QLayoutItem::expandingDirections().
Reimplemented from QLayoutItem::geometry().
See also setGeometry().
Reimplemented from QLayoutItem::hasHeightForWidth().
Reimplemented from QLayoutItem::heightForWidth().
Reimplemented from QLayoutItem::isEmpty().
Returns true if the widget is hidden; otherwise returns false.
See also QWidget::isHidden().
Reimplemented from QLayoutItem::maximumSize().
Reimplemented from QLayoutItem::minimumSize().
Reimplemented from QLayoutItem::setGeometry().
See also geometry().
Reimplemented from QLayoutItem::sizeHint().
Reimplemented from QLayoutItem::widget().
Returns the widget managed by this item.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.