QWidgetItem Class
The QWidgetItem class is a layout item that represents a widget. More...
| Header: | #include <QWidgetItem> |
| qmake: | QT += widgets |
| Inherits: | QLayoutItem |
Detailed Description
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().