
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQWidgetItem class is a layout item that represents a widget.More...
| Header: | #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() |
TheQWidgetItem 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:
See alsoQLayout,QSpacerItem, andQLayoutItem::widget().
Creates an item containing the givenwidget.
[virtual]Qt::Orientations QWidgetItem::expandingDirections() constReimplemented fromQLayoutItem::expandingDirections().
[virtual]QRect QWidgetItem::geometry() constReimplemented fromQLayoutItem::geometry().
See alsosetGeometry().
[virtual]bool QWidgetItem::hasHeightForWidth() constReimplemented fromQLayoutItem::hasHeightForWidth().
[virtual]int QWidgetItem::heightForWidth(int w) constReimplemented fromQLayoutItem::heightForWidth().
[virtual]bool QWidgetItem::isEmpty() constReimplemented fromQLayoutItem::isEmpty().
Returns true if the widget is hidden; otherwise returns false.
See alsoQWidget::isHidden().
[virtual]QSize QWidgetItem::maximumSize() constReimplemented fromQLayoutItem::maximumSize().
[virtual]QSize QWidgetItem::minimumSize() constReimplemented fromQLayoutItem::minimumSize().
[virtual]void QWidgetItem::setGeometry(constQRect & rect)Reimplemented fromQLayoutItem::setGeometry().
See alsogeometry().
[virtual]QSize QWidgetItem::sizeHint() constReimplemented fromQLayoutItem::sizeHint().
[virtual]QWidget * QWidgetItem::widget()Reimplemented fromQLayoutItem::widget().
Returns the widget managed by this item.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.