Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QWidgetItem Class Reference
[QtGui module]

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

#include <QWidgetItem>

Inherits QLayoutItem.

Public Functions


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:

ClassFunctions
QBoxLayoutaddWidget(), insertWidget(), setStretchFactor()
QGridLayoutaddWidget()
QStackedLayoutaddWidget(), insertWidget(), currentWidget(), setCurrentWidget(), widget()

See also QLayout, QSpacerItem, and QLayoutItem::widget().


Member Function Documentation

QWidgetItem::QWidgetItem ( QWidget * widget )

Creates an item containing the given widget.

bool QWidgetItem::isEmpty () const   [virtual]

Returns true if the widget is hidden; otherwise returns false.

Reimplemented from QLayoutItem.

See also QWidget::isHidden().

QWidget * QWidgetItem::widget ()   [virtual]

Returns the widget managed by this item.

Reimplemented from QLayoutItem.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz