Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QLayoutItem Class Reference

Inheritance diagram for QLayoutItem:

QLayout QSpacerItem QWidgetItem QBoxLayout QGridLayout QStackedLayout QHBoxLayout QVBoxLayout

List of all members.


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 {http://doc.trolltech.com/qq/qq04-height-for-width.html}{Trading Height for Width}.

See also:
QLayout

Definition at line 44 of file qlayoutitem.h.


Public Member Functions

Qt::Alignment alignment () const
virtual Qt::Orientations expandingDirections () const =0
virtual QRect geometry () const =0
virtual bool hasHeightForWidth () const
virtual int heightForWidth (int) const
virtual void invalidate ()
virtual bool isEmpty () const =0
virtual QLayoutlayout ()
virtual QSize maximumSize () const =0
virtual int minimumHeightForWidth (int) const
virtual QSize minimumSize () const =0
 QLayoutItem (Qt::Alignment alignment=0)
void setAlignment (Qt::Alignment a)
virtual void setGeometry (const QRect &)=0
virtual QSize sizeHint () const =0
virtual QSpacerItemspacerItem ()
virtual QWidgetwidget ()
virtual ~QLayoutItem ()

Protected Attributes

Qt::Alignment align

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index