<class name="QSpacerItem" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSpacerItem.html#QSpacerItem(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt; class provides blank space in a layout.&lt;/p&gt;
&lt;p&gt;Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating empty space in layouts:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Class&lt;/th&gt;&lt;th&gt;Functions&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QHBoxLayout.html&quot;&gt;&lt;tt&gt;QHBoxLayout&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;addSpacing(), addStretch(), insertSpacing(), insertStretch()&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QGridLayout.html&quot;&gt;&lt;tt&gt;QGridLayout&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;setRowMinimumHeight(), setRowStretch(), setColumnMinimumWidth(), setColumnStretch()&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidgetItem.html&quot;&gt;&lt;tt&gt;QWidgetItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLayoutItem::spacerItem&lt;/tt&gt; */">
    <method name="public QSpacerItem(int w, int h, com.trolltech.qt.gui.QSizePolicy.Policy hData, com.trolltech.qt.gui.QSizePolicy.Policy vData)" doc="/**
&lt;p&gt;Constructs a spacer item with preferred width &lt;tt&gt;w&lt;/tt&gt;, preferred height &lt;tt&gt;h&lt;/tt&gt;, horizontal size policy &lt;tt&gt;hData&lt;/tt&gt; and vertical size policy &lt;tt&gt;vData&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default values provide a gap that is able to stretch if nothing else wants the space.&lt;/p&gt;
 */"/>
    <method name="public QSpacerItem(int w, int h, com.trolltech.qt.gui.QSizePolicy.Policy hData)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSpacerItem.html#QSpacerItem(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;hData&lt;/tt&gt;, QSizePolicy::Minimum). */"/>
    <method name="public QSpacerItem(int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSpacerItem.html#QSpacerItem(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, QSizePolicy::Minimum, QSizePolicy::Minimum). */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment alignment()" doc="/**
&lt;p&gt;Returns the alignment of this item.&lt;/p&gt;

@see &lt;a href=&quot;QSpacerItem.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void changeSize(int w, int h, com.trolltech.qt.gui.QSizePolicy.Policy hData, com.trolltech.qt.gui.QSizePolicy.Policy vData)" doc="/**
&lt;p&gt;Changes this spacer item to have preferred width &lt;tt&gt;w&lt;/tt&gt;, preferred height &lt;tt&gt;h&lt;/tt&gt;, horizontal size policy &lt;tt&gt;hData&lt;/tt&gt; and vertical size policy &lt;tt&gt;vData&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default values provide a gap that is able to stretch if nothing else wants the space.&lt;/p&gt;
&lt;p&gt;Note that if &lt;a href=&quot;QSpacerItem.html#changeSize(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;changeSize&lt;/tt&gt;&lt;/a&gt; is called after the spacer item has been added to a layout, it is necessary to invalidate the layout in order for the spacer item's new size to take effect.&lt;/p&gt;

@see &lt;tt&gt;QSpacerItem::invalidate&lt;/tt&gt; */"/>
    <method name="public final void changeSize(int w, int h, com.trolltech.qt.gui.QSizePolicy.Policy hData)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSpacerItem.html#changeSize(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;changeSize&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;hData&lt;/tt&gt;, QSizePolicy::Minimum). */"/>
    <method name="public final void changeSize(int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSpacerItem.html#changeSize(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;changeSize&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, QSizePolicy::Minimum, QSizePolicy::Minimum). */"/>
    <method name="public final com.trolltech.qt.gui.QSizePolicy.ControlTypes controlTypes()" doc="/**
&lt;p&gt;Returns the control type(s) for the layout item. For a &lt;a href=&quot;QWidgetItem.html&quot;&gt;&lt;tt&gt;QWidgetItem&lt;/tt&gt;&lt;/a&gt;, the control type comes from the widget's size policy; for a &lt;a href=&quot;QLayoutItem.html&quot;&gt;&lt;tt&gt;QLayoutItem&lt;/tt&gt;&lt;/a&gt;, the control types is derived from the layout's contents.&lt;/p&gt;

@see &lt;tt&gt;QSizePolicy::controlType&lt;/tt&gt; */"/>
    <method name="public final void setAlignment(com.trolltech.qt.core.Qt.Alignment a)" doc="/**
&lt;p&gt;Sets the alignment of this item to &lt;tt&gt;a&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Item alignment is only supported by &lt;a href=&quot;QLayoutItem.html&quot;&gt;&lt;tt&gt;QLayoutItem&lt;/tt&gt;&lt;/a&gt; subclasses where it would have a visual effect. Except for &lt;a href=&quot;QSpacerItem.html#QSpacerItem(int, int, com.trolltech.qt.gui.QSizePolicy.Policy, com.trolltech.qt.gui.QSizePolicy.Policy)&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;, which provides blank space for layouts, all public Qt classes that inherit &lt;a href=&quot;QLayoutItem.html&quot;&gt;&lt;tt&gt;QLayoutItem&lt;/tt&gt;&lt;/a&gt; support item alignment.&lt;/p&gt;

@see &lt;a href=&quot;QSpacerItem.html#alignment()&quot;&gt;&lt;tt&gt;alignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.Qt.Orientations expandingDirections()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QRect geometry()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSpacerItem.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean hasHeightForWidth()" doc="/**
&lt;p&gt;Returns true if this layout's preferred height depends on its width; otherwise returns false. The default implementation returns false.&lt;/p&gt;
&lt;p&gt;Reimplement this function in layout managers that support height for width.&lt;/p&gt;

@see &lt;a href=&quot;QSpacerItem.html#heightForWidth(int)&quot;&gt;&lt;tt&gt;heightForWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::heightForWidth&lt;/tt&gt; */"/>
    <method name="public int heightForWidth(int arg__1)" doc="/**
&lt;p&gt;Returns the preferred height for this layout item, given the width &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default implementation returns -1, indicating that the preferred height is independent of the width of the item. Using the function &lt;a href=&quot;QSpacerItem.html#hasHeightForWidth()&quot;&gt;&lt;tt&gt;hasHeightForWidth&lt;/tt&gt;&lt;/a&gt; will typically be much faster than calling this function and testing for -1.&lt;/p&gt;
&lt;p&gt;Reimplement this function in layout managers that support height for width. A typical implementation will look like this:&lt;/p&gt;
&lt;pre&gt;    int MyLayout::heightForWidth(int w) const
    {
        if (cache_dirty || cached_width != w) {
            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; not all C++ compilers support &amp;quot;mutable&amp;quot;
            MyLayout *that = (MyLayout*)this;
            int h = calculateHeightForWidth(w);
            that-&amp;gt;cached_hfw = h;
            return h;
        }
        return cached_hfw;
    }&lt;/pre&gt;
&lt;p&gt;Caching is strongly recommended; without it layout will take exponential time.&lt;/p&gt;

@see &lt;a href=&quot;QSpacerItem.html#hasHeightForWidth()&quot;&gt;&lt;tt&gt;hasHeightForWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void invalidate()" doc="/**
&lt;p&gt;Invalidates any cached information in this layout item.&lt;/p&gt;
 */"/>
    <method name="public boolean isEmpty()" doc="/**
&lt;p&gt;Returns true.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QLayout layout()" doc="/**
&lt;p&gt;If this item is a &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;, it is returned as a &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;; otherwise 0 is returned. This function provides type-safe casting.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize maximumSize()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int minimumHeightForWidth(int arg__1)" doc="/**
&lt;p&gt;Returns the minimum height this widget needs for the given width, &lt;tt&gt;arg__1&lt;/tt&gt;. The default implementation simply returns &lt;a href=&quot;QSpacerItem.html#heightForWidth(int)&quot;&gt;&lt;tt&gt;heightForWidth&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSize()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void setGeometry(com.trolltech.qt.core.QRect arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSpacerItem.html#geometry()&quot;&gt;&lt;tt&gt;geometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QSpacerItem spacerItem()" doc="/**
&lt;p&gt;Returns a pointer to this object.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QWidget widget()" doc="/**
&lt;p&gt;If this item is a &lt;a href=&quot;QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;, it is returned as a &lt;a href=&quot;QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;; otherwise 0 is returned. This function provides type-safe casting.&lt;/p&gt;
 */"/>
</class>
