![]() |
Qt 4.8
|
The QWidgetItem class is a layout item that represents a widget. More...
#include <qlayoutitem.h>
Public Functions | |
| Qt::Orientations | expandingDirections () const |
| Reimplemented Function More... | |
| QRect | geometry () const |
| Reimplemented Function More... | |
| bool | hasHeightForWidth () const |
| Reimplemented Function More... | |
| int | heightForWidth (int) const |
| Reimplemented Function More... | |
| bool | isEmpty () const |
| Returns true if the widget is hidden; otherwise returns false. More... | |
| QSize | maximumSize () const |
| Reimplemented Function More... | |
| QSize | minimumSize () const |
| Reimplemented Function More... | |
| QWidgetItem (QWidget *w) | |
| Creates an item containing the given widget. More... | |
| void | setGeometry (const QRect &) |
| Reimplemented Function More... | |
| QSize | sizeHint () const |
| Reimplemented Function More... | |
| virtual QWidget * | widget () |
| Returns the widget managed by this item. More... | |
Public Functions inherited from QLayoutItem | |
| Qt::Alignment | alignment () const |
| Returns the alignment of this item. More... | |
| QSizePolicy::ControlTypes | controlTypes () const |
| Returns the control type(s) for the layout item. More... | |
| virtual void | invalidate () |
| Invalidates any cached information in this layout item. More... | |
| virtual QLayout * | layout () |
| If this item is a QLayout, it is returned as a QLayout; otherwise 0 is returned. More... | |
| virtual int | minimumHeightForWidth (int) const |
| Returns the minimum height this widget needs for the given width, w. More... | |
| QLayoutItem (Qt::Alignment alignment=0) | |
| Constructs a layout item with an alignment. More... | |
| void | setAlignment (Qt::Alignment a) |
| Sets the alignment of this item to alignment. More... | |
| virtual QSpacerItem * | spacerItem () |
| If this item is a QSpacerItem, it is returned as a QSpacerItem; otherwise 0 is returned. More... | |
| virtual | ~QLayoutItem () |
| Destroys the QLayoutItem. More... | |
Protected Variables | |
| QWidget * | wid |
Protected Variables inherited from QLayoutItem | |
| Qt::Alignment | align |
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() |
Definition at line 122 of file qlayoutitem.h.
|
inlineexplicit |
|
virtual |
Reimplemented Function
Implements QLayoutItem.
Definition at line 603 of file qlayoutitem.cpp.
Referenced by QToolBarLayout::updateGeomArray().
|
virtual |
Reimplemented Function
Implements QLayoutItem.
Definition at line 542 of file qlayoutitem.cpp.
Referenced by QPushButtonPrivate::adjustedMenuPosition().
|
virtual |
Reimplemented Function
Reimplemented from QLayoutItem.
Definition at line 553 of file qlayoutitem.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QLayoutItem.
Reimplemented in QWidgetItemV2.
Definition at line 563 of file qlayoutitem.cpp.
Referenced by QWidgetItemV2::heightForWidth().
|
virtual |
Returns true if the widget is hidden; otherwise returns false.
Implements QLayoutItem.
Reimplemented in QToolBarItem.
Definition at line 718 of file qlayoutitem.cpp.
Referenced by QWidgetItemV2::heightForWidth(), QWidgetItemV2::maximumSize(), QWidgetItemV2::minimumSize(), and QWidgetItemV2::sizeHint().
|
virtual |
Reimplemented Function
Implements QLayoutItem.
Reimplemented in QDockWidgetItem, and QWidgetItemV2.
Definition at line 664 of file qlayoutitem.cpp.
Referenced by QMainWindowLayout::fixSizeInUnifiedToolbar(), make_widget_eventUPP(), QWidgetItemV2::maximumSize(), and QToolBarLayout::updateGeomArray().
|
virtual |
Reimplemented Function
Implements QLayoutItem.
Reimplemented in QDockWidgetItem, and QWidgetItemV2.
Definition at line 643 of file qlayoutitem.cpp.
Referenced by QMainWindowLayout::fixSizeInUnifiedToolbar(), make_widget_eventUPP(), QWidgetItemV2::minimumSize(), and QToolBarLayout::updateGeomArray().
|
virtual |
Reimplemented Function
Implements QLayoutItem.
Definition at line 474 of file qlayoutitem.cpp.
Referenced by QToolBarLayout::layoutActions().
|
virtual |
Reimplemented Function
Implements QLayoutItem.
Reimplemented in QDockWidgetItem, and QWidgetItemV2.
Definition at line 686 of file qlayoutitem.cpp.
Referenced by QToolBarLayout::expandedSize(), QToolBarLayout::layoutActions(), QWidgetItemV2::sizeHint(), QDockWidgetItem::sizeHint(), and QToolBarLayout::updateGeomArray().
|
virtual |
Returns the widget managed by this item.
Reimplemented from QLayoutItem.
Definition at line 385 of file qlayoutitem.cpp.
Referenced by defaultWidgetAction(), QToolBarLayout::layoutActions(), QToolBarLayout::takeAt(), QToolBarLayout::updateGeomArray(), and QToolBarLayout::~QToolBarLayout().
|
protected |
Definition at line 141 of file qlayoutitem.h.
Referenced by QWidgetItemV2::QWidgetItemV2(), QWidgetItemV2::~QWidgetItemV2(), and QWidgetPrivate::~QWidgetPrivate().