<class name="QWidgetItem" doc="/** <p>The <a href="QWidgetItem.html#QWidgetItem(com.trolltech.qt.gui.QWidget)"><tt>QWidgetItem</tt></a> class is a layout item that represents a widget.</p> <p>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:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <thead><tr valign="top" class="qt-style"><th>Class</th><th>Functions</th></tr></thead> <tr valign="top" class="odd"><td><a href="QBoxLayout.html"><tt>QBoxLayout</tt></a></td><td>addWidget(), insertWidget(), setStretchFactor()</td></tr> <tr valign="top" class="even"><td><a href="QGridLayout.html"><tt>QGridLayout</tt></a></td><td>addWidget()</td></tr> <tr valign="top" class="odd"><td><a href="QStackedLayout.html"><tt>QStackedLayout</tt></a></td><td>addWidget(), insertWidget(), currentWidget(), setCurrentWidget(), widget()</td></tr> </table></p> @see <a href="QLayout.html"><tt>QLayout</tt></a> @see <a href="QSpacerItem.html"><tt>QSpacerItem</tt></a> @see <tt>QLayoutItem::widget</tt> */"> <method name="public QWidgetItem(com.trolltech.qt.gui.QWidget w)" doc="/** <p>Creates an item containing the given <tt>w</tt>.</p> */"/> <method name="public final com.trolltech.qt.core.Qt.Alignment alignment()" doc="/** <p>Returns the alignment of this item.</p> @see <a href="QWidgetItem.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)"><tt>setAlignment</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QSizePolicy.ControlTypes controlTypes()" doc="/** <p>Returns the control type(s) for the layout item. For a <a href="QWidgetItem.html#QWidgetItem(com.trolltech.qt.gui.QWidget)"><tt>QWidgetItem</tt></a>, the control type comes from the widget's size policy; for a <a href="QLayoutItem.html"><tt>QLayoutItem</tt></a>, the control types is derived from the layout's contents.</p> @see <tt>QSizePolicy::controlType</tt> */"/> <method name="public final void setAlignment(com.trolltech.qt.core.Qt.Alignment a)" doc="/** <p>Sets the alignment of this item to <tt>a</tt>.</p> <p><b>Note:</b> Item alignment is only supported by <a href="QLayoutItem.html"><tt>QLayoutItem</tt></a> subclasses where it would have a visual effect. Except for <a href="QSpacerItem.html"><tt>QSpacerItem</tt></a>, which provides blank space for layouts, all public Qt classes that inherit <a href="QLayoutItem.html"><tt>QLayoutItem</tt></a> support item alignment.</p> @see <a href="QWidgetItem.html#alignment()"><tt>alignment</tt></a> */"/> <method name="public com.trolltech.qt.core.Qt.Orientations expandingDirections()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QRect geometry()" doc="/** <p>This function is reimplemented for internal reasons.</p> @see <a href="QWidgetItem.html#setGeometry(com.trolltech.qt.core.QRect)"><tt>setGeometry</tt></a> */"/> <method name="public boolean hasHeightForWidth()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public int heightForWidth(int arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void invalidate()" doc="/** <p>Invalidates any cached information in this layout item.</p> */"/> <method name="public boolean isEmpty()" doc="/** <p>Returns true if the widget is hidden; otherwise returns false.</p> @see <tt>QWidget::isHidden</tt> */"/> <method name="public com.trolltech.qt.gui.QLayout layout()" doc="/** <p>If this item is a <a href="QLayout.html"><tt>QLayout</tt></a>, it is returned as a <a href="QLayout.html"><tt>QLayout</tt></a>; otherwise 0 is returned. This function provides type-safe casting.</p> */"/> <method name="public com.trolltech.qt.core.QSize maximumSize()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public int minimumHeightForWidth(int arg__1)" doc="/** <p>Returns the minimum height this widget needs for the given width, <tt>arg__1</tt>. The default implementation simply returns <a href="QWidgetItem.html#heightForWidth(int)"><tt>heightForWidth</tt></a>(<tt>arg__1</tt>).</p> */"/> <method name="public com.trolltech.qt.core.QSize minimumSize()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void setGeometry(com.trolltech.qt.core.QRect arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> @see <a href="QWidgetItem.html#geometry()"><tt>geometry</tt></a> */"/> <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.gui.QSpacerItem spacerItem()" doc="/** <p>If this item is a <a href="QSpacerItem.html"><tt>QSpacerItem</tt></a>, it is returned as a <a href="QSpacerItem.html"><tt>QSpacerItem</tt></a>; otherwise 0 is returned. This function provides type-safe casting.</p> */"/> <method name="public com.trolltech.qt.gui.QWidget widget()" doc="/** <p>Returns the widget managed by this item.</p> */"/> </class>