Home · Overviews · Examples 

QLayoutItemInterface Class Reference
[com.trolltech.qt.gui module]

The QLayoutItem class provides an abstract item that a QLayout manipulates. More...

Inherited by QLayout, QLayoutItem, QSpacerItem, and QWidgetItem.


Detailed Description

The QLayoutItem class provides an abstract item that a QLayout manipulates.

This is used by custom layouts.

Pure virtual functions are provided to return information about the layout, including, sizeHint, minimumSize, maximumSize and expanding().

The layout's geometry can be set and retrieved with setGeometry and geometry, and its alignment with setAlignment and alignment.

isEmpty returns whether the layout item is empty. If the concrete item is a QWidget, it can be retrieved using widget. Similarly for layout and spacerItem.

Some layouts have width and height interdependencies. These can be expressed using hasHeightForWidth, heightForWidth, and minimumHeightForWidth. For more explanation see the Qt Quarterly article Trading Height for Width.

See also QLayout.


Copyright © 2008 Trolltech Trademarks
Qt Jambi 4.3.5_01