Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

QWidgetItem Class Reference

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

#include <QWidgetItem>

Part of the QtGui module.

Inherits QLayoutItem.

Public Functions


Detailed Description

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

This is used by custom layouts.

See also QLayout and QLayout::widget().


Member Function Documentation

QWidgetItem::QWidgetItem ( QWidget * w )

Creates an item containing widget w.

bool QWidgetItem::isEmpty () const   [virtual]

Returns true if the widget has been hidden; otherwise returns false.

Reimplemented from QLayoutItem.

QSize QWidgetItem::maximumSize () const   [virtual]

Returns the maximum size of this item.

Reimplemented from QLayoutItem.

QSize QWidgetItem::minimumSize () const   [virtual]

Returns the minimum size of this item.

Reimplemented from QLayoutItem.

void QWidgetItem::setGeometry ( const QRect & r )   [virtual]

Sets the geometry of this item's widget to be contained within rect r, taking alignment and maximum size into account.

Reimplemented from QLayoutItem.

QSize QWidgetItem::sizeHint () const   [virtual]

Returns the preferred size of this item.

Reimplemented from QLayoutItem.

QWidget * QWidgetItem::widget ()   [virtual]

Returns the widget managed by this item.

Reimplemented from QLayoutItem.


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2