|  | Home · Overviews · Examples

# QWidgetItem Class Reference
[com.trolltech.qt.gui module]

The `QWidgetItem` class is a layout item that represents a widget. More...

Inherits .

## Detailed Description

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`.