Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1930

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QBoxLayout" doc="/**
&lt;p&gt;The &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; class lines up child widgets horizontally or vertically.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; takes the space it gets (from its parent layout or from the &lt;a href=&quot;QLayout.html#parentWidget()&quot;&gt;&lt;tt&gt;parentWidget&lt;/tt&gt;&lt;/a&gt;), divides it up into a row of boxes, and makes each managed widget fill one box.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qhboxlayout-with-5-children.png&quot; alt=&quot;Horizontal box layout with five child widgets&quot; /&gt;&lt;/p&gt;&lt;p&gt;If the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;'s orientation is Qt::Horizontal the boxes are placed in a row, with suitable sizes. Each widget (or other box) will get at least its minimum size and at most its maximum size. Any excess space is shared according to the stretch factors (more about that below).&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qvboxlayout-with-5-children.png&quot; alt=&quot;Vertical box layout with five child widgets&quot; /&gt;&lt;/p&gt;&lt;p&gt;If the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;'s orientation is Qt::Vertical, the boxes are placed in a column, again with suitable sizes.&lt;/p&gt;
&lt;p&gt;The easiest way to create a &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; is to use one of the convenience classes, e.g&amp;#x2e; &lt;a href=&quot;QHBoxLayout.html&quot;&gt;&lt;tt&gt;QHBoxLayout&lt;/tt&gt;&lt;/a&gt; (for Qt::Horizontal boxes) or &lt;a href=&quot;QVBoxLayout.html&quot;&gt;&lt;tt&gt;QVBoxLayout&lt;/tt&gt;&lt;/a&gt; (for Qt::Vertical boxes). You can also use the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; constructor directly, specifying its direction as &lt;a href=&quot;QBoxLayout.html#Direction-enum&quot;&gt;&lt;tt&gt;LeftToRight&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QBoxLayout.html#Direction-enum&quot;&gt;&lt;tt&gt;RightToLeft&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QBoxLayout.html#Direction-enum&quot;&gt;&lt;tt&gt;TopToBottom&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QBoxLayout.html#Direction-enum&quot;&gt;&lt;tt&gt;BottomToTop&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; is not the top-level layout (i.e&amp;#x2e; it is not managing all of the widget's area and children), you must add it to its parent layout before you can do anything with it. The normal way to add a layout is by calling parentLayout-&amp;gt;&lt;a href=&quot;QBoxLayout.html#addLayout(com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;addLayout&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once you have done this, you can add boxes to the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; using one of four functions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QBoxLayout.html#addWidget(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt; to add a widget to the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; and set the widget's stretch factor. (The stretch factor is along the row of boxes.)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QBoxLayout.html#addSpacing(int)&quot;&gt;&lt;tt&gt;addSpacing&lt;/tt&gt;&lt;/a&gt; to create an empty box; this is one of the functions you use to create nice and spacious dialogs. See below for ways to set margins.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QBoxLayout.html#addStretch(int)&quot;&gt;&lt;tt&gt;addStretch&lt;/tt&gt;&lt;/a&gt; to create an empty, stretchable box.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QBoxLayout.html#addLayout(com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;addLayout&lt;/tt&gt;&lt;/a&gt; to add a box containing another &lt;a href=&quot;QLayout.html#QLayout()&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt; to the row and set that layout's stretch factor.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Use &lt;a href=&quot;QBoxLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QBoxLayout.html#insertSpacing(int, int)&quot;&gt;&lt;tt&gt;insertSpacing&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QBoxLayout.html#insertStretch(int, int)&quot;&gt;&lt;tt&gt;insertStretch&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QBoxLayout.html#insertLayout(int, com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;insertLayout&lt;/tt&gt;&lt;/a&gt; to insert a box at a specified position in the layout.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; also includes two margin widths:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QLayout.html#setMargin(int)&quot;&gt;&lt;tt&gt;setMargin&lt;/tt&gt;&lt;/a&gt; sets the width of the outer border. This is the width of the reserved space along each of the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;'s four sides.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QBoxLayout.html#setSpacing(int)&quot;&gt;&lt;tt&gt;setSpacing&lt;/tt&gt;&lt;/a&gt; sets the width between neighboring boxes. (You can use &lt;a href=&quot;QBoxLayout.html#addSpacing(int)&quot;&gt;&lt;tt&gt;addSpacing&lt;/tt&gt;&lt;/a&gt; to get more space at a particular spot.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The margin default is provided by the style. The default margin most Qt styles specify is 9 for child widgets and 11 for windows. The spacing defaults to the same as the margin width for a top-level layout, or to the same as the parent layout.&lt;/p&gt;
&lt;p&gt;To remove a widget from a layout, call &lt;a href=&quot;QLayout.html#removeWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;removeWidget&lt;/tt&gt;&lt;/a&gt;. Calling QWidget::hide() on a widget also effectively removes the widget from the layout until QWidget::show() is called.&lt;/p&gt;
&lt;p&gt;You will almost always want to use &lt;a href=&quot;QVBoxLayout.html&quot;&gt;&lt;tt&gt;QVBoxLayout&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QHBoxLayout.html&quot;&gt;&lt;tt&gt;QHBoxLayout&lt;/tt&gt;&lt;/a&gt; rather than &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; because of their convenient constructors.&lt;/p&gt;

@see &lt;a href=&quot;QGridLayout.html&quot;&gt;&lt;tt&gt;QGridLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/layout.html&quot;&gt;Layout Classes&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction arg__1, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a new &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; with direction &lt;tt&gt;arg__1&lt;/tt&gt; and parent widget &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#direction()&quot;&gt;&lt;tt&gt;direction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, 0). */"/>
    <method name="public final void addLayout(com.trolltech.qt.gui.QLayout layout, int stretch)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;layout&lt;/tt&gt; to the end of the box, with serial stretch factor &lt;tt&gt;stretch&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#insertLayout(int, com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;insertLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addItem(com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addWidget(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addLayout(com.trolltech.qt.gui.QLayout layout)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#addLayout(com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;addLayout&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;layout&lt;/tt&gt;, 0). */"/>
    <method name="public final void addSpacing(int size)" doc="/**
&lt;p&gt;Adds a non-stretchable space (a &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;) with size &lt;tt&gt;size&lt;/tt&gt; to the end of this box layout. &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; provides default margin and spacing. This function adds additional space.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#insertSpacing(int, int)&quot;&gt;&lt;tt&gt;insertSpacing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addItem(com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addStretch(int stretch)" doc="/**
&lt;p&gt;Adds a stretchable space (a &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;) with zero minimum size and stretch factor &lt;tt&gt;stretch&lt;/tt&gt; to the end of this box layout.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#insertStretch(int, int)&quot;&gt;&lt;tt&gt;insertStretch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addItem(com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addStretch()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#addStretch(int)&quot;&gt;&lt;tt&gt;addStretch&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void addStrut(int arg__1)" doc="/**
&lt;p&gt;Limits the perpendicular dimension of the box (e.g&amp;#x2e; height if the box is &lt;a href=&quot;QBoxLayout.html#Direction-enum&quot;&gt;&lt;tt&gt;LeftToRight&lt;/tt&gt;&lt;/a&gt;) to a minimum of &lt;tt&gt;arg__1&lt;/tt&gt;. Other constraints may increase the limit.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#addItem(com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addWidget(com.trolltech.qt.gui.QWidget arg__1, int stretch, com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;arg__1&lt;/tt&gt; to the end of this box layout, with a stretch factor of &lt;tt&gt;stretch&lt;/tt&gt; and alignment &lt;tt&gt;alignment&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The stretch factor applies only in the &lt;a href=&quot;QBoxLayout.html#direction()&quot;&gt;direction&lt;/tt&gt;&lt;/a&gt; of the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;, and is relative to the other boxes and widgets in this &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;. Widgets and boxes with higher stretch factors grow more.&lt;/p&gt;
&lt;p&gt;If the stretch factor is 0 and nothing else in the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; has a stretch factor greater than zero, the space is distributed according to the &lt;a href=&quot;QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;:sizePolicy() of each widget that's involved.&lt;/p&gt;
&lt;p&gt;The alignment is specified by &lt;tt&gt;alignment&lt;/tt&gt;. The default alignment is 0, which means that the widget fills the entire cell.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addItem(com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addLayout(com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;addLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addStretch(int)&quot;&gt;&lt;tt&gt;addStretch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addSpacing(int)&quot;&gt;&lt;tt&gt;addSpacing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addStrut(int)&quot;&gt;&lt;tt&gt;addStrut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBoxLayout.Direction direction()" doc="/**
&lt;p&gt;Returns the direction of the box. &lt;a href=&quot;QBoxLayout.html#addWidget(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QBoxLayout.html#addSpacing(int)&quot;&gt;&lt;tt&gt;addSpacing&lt;/tt&gt;&lt;/a&gt; work in this direction; the stretch stretches in this direction.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#setDirection(com.trolltech.qt.gui.QBoxLayout.Direction)&quot;&gt;&lt;tt&gt;setDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QBoxLayout::Direction&lt;/tt&gt;
@see &lt;a href=&quot;QBoxLayout.html#addWidget(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#addSpacing(int)&quot;&gt;&lt;tt&gt;addSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void insertItem(int index, com.trolltech.qt.gui.QLayoutItemInterface arg__2)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;arg__2&lt;/tt&gt; into this box layout at position &lt;tt&gt;index&lt;/tt&gt;. If &lt;tt&gt;index&lt;/tt&gt; is negative, the item is added at the end.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#addItem(com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;addItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertLayout(int, com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;insertLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertStretch(int, int)&quot;&gt;&lt;tt&gt;insertStretch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertSpacing(int, int)&quot;&gt;&lt;tt&gt;insertSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertLayout(int index, com.trolltech.qt.gui.QLayout layout, int stretch)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;layout&lt;/tt&gt; at position &lt;tt&gt;index&lt;/tt&gt;, with stretch factor &lt;tt&gt;stretch&lt;/tt&gt;. If &lt;tt&gt;index&lt;/tt&gt; is negative, the layout is added at the end.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;layout&lt;/tt&gt; becomes a child of the box layout.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#addLayout(com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;addLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertItem(int, com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;insertItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertLayout(int index, com.trolltech.qt.gui.QLayout layout)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#insertLayout(int, com.trolltech.qt.gui.QLayout, int)&quot;&gt;&lt;tt&gt;insertLayout&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, &lt;tt&gt;layout&lt;/tt&gt;, 0). */"/>
    <method name="public final void insertSpacing(int index, int size)" doc="/**
&lt;p&gt;Inserts a non-stretchable space (a &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;) at position &lt;tt&gt;index&lt;/tt&gt;, with size &lt;tt&gt;size&lt;/tt&gt;. If &lt;tt&gt;index&lt;/tt&gt; is negative the space is added at the end.&lt;/p&gt;
&lt;p&gt;The box layout has default margin and spacing. This function adds additional space.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#addSpacing(int)&quot;&gt;&lt;tt&gt;addSpacing&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertItem(int, com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;insertItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertStretch(int index, int stretch)" doc="/**
&lt;p&gt;Inserts a stretchable space (a &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt;) at position &lt;tt&gt;index&lt;/tt&gt;, with zero minimum size and stretch factor &lt;tt&gt;stretch&lt;/tt&gt;. If &lt;tt&gt;index&lt;/tt&gt; is negative the space is added at the end.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#addStretch(int)&quot;&gt;&lt;tt&gt;addStretch&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertItem(int, com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;insertItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpacerItem.html&quot;&gt;&lt;tt&gt;QSpacerItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertStretch(int index)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#insertStretch(int, int)&quot;&gt;&lt;tt&gt;insertStretch&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, 0). */"/>
    <method name="public final void insertWidget(int index, com.trolltech.qt.gui.QWidget widget, int stretch, com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;widget&lt;/tt&gt; at position &lt;tt&gt;index&lt;/tt&gt;, with stretch factor &lt;tt&gt;stretch&lt;/tt&gt; and alignment &lt;tt&gt;alignment&lt;/tt&gt;. If &lt;tt&gt;index&lt;/tt&gt; is negative, the widget is added at the end.&lt;/p&gt;
&lt;p&gt;The stretch factor applies only in the &lt;a href=&quot;QBoxLayout.html#direction()&quot;&gt;direction&lt;/tt&gt;&lt;/a&gt; of the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;, and is relative to the other boxes and widgets in this &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt;. Widgets and boxes with higher stretch factors grow more.&lt;/p&gt;
&lt;p&gt;If the stretch factor is 0 and nothing else in the &lt;a href=&quot;QBoxLayout.html#QBoxLayout(com.trolltech.qt.gui.QBoxLayout.Direction, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; has a stretch factor greater than zero, the space is distributed according to the &lt;a href=&quot;QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;:sizePolicy() of each widget that's involved.&lt;/p&gt;
&lt;p&gt;The alignment is specified by &lt;tt&gt;alignment&lt;/tt&gt;. The default alignment is 0, which means that the widget fills the entire cell.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#addWidget(com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html#insertItem(int, com.trolltech.qt.gui.QLayoutItemInterface)&quot;&gt;&lt;tt&gt;insertItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertWidget(int index, com.trolltech.qt.gui.QWidget widget, int stretch)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, &lt;tt&gt;widget&lt;/tt&gt;, &lt;tt&gt;stretch&lt;/tt&gt;, 0). */"/>
    <method name="public final void insertWidget(int index, com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBoxLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget, int, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, &lt;tt&gt;widget&lt;/tt&gt;, 0, 0). */"/>
    <method name="public final void setDirection(com.trolltech.qt.gui.QBoxLayout.Direction arg__1)" doc="/**
&lt;p&gt;Sets the direction of this layout to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QBoxLayout.html#direction()&quot;&gt;&lt;tt&gt;direction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSpacing(int spacing)" doc="/**
&lt;p&gt;Reimplements QLayout::setSpacing(). Sets the spacing property to &lt;tt&gt;spacing&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QLayout::setSpacing&lt;/tt&gt;
@see &lt;a href=&quot;QBoxLayout.html#spacing()&quot;&gt;&lt;tt&gt;spacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean setStretchFactor(com.trolltech.qt.gui.QLayout l, int stretch)" doc="/**
&lt;p&gt;Sets the stretch factor for the layout &lt;tt&gt;l&lt;/tt&gt; to &lt;tt&gt;stretch&lt;/tt&gt; and returns true if &lt;tt&gt;l&lt;/tt&gt; is found in this layout (not including child layouts); otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean setStretchFactor(com.trolltech.qt.gui.QWidget w, int stretch)" doc="/**
&lt;p&gt;Sets the stretch factor for &lt;tt&gt;w&lt;/tt&gt; to &lt;tt&gt;stretch&lt;/tt&gt; and returns true if &lt;tt&gt;w&lt;/tt&gt; is found in this layout (not including child layouts); otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QLayout.html#setAlignment(com.trolltech.qt.gui.QLayout, com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int spacing()" doc="/**
&lt;p&gt;Reimplements QLayout::spacing(). If the spacing property is valid, that value is returned. Otherwise, a value for the spacing property is computed and returned. Since layout spacing in a widget is style dependent, if the parent is a widget, it queries the style for the (horizontal or vertical) spacing of the layout. Otherwise, the parent is a layout, and it queries the parent layout for the &lt;a href=&quot;QBoxLayout.html#spacing()&quot;&gt;&lt;tt&gt;spacing&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;tt&gt;QLayout::spacing&lt;/tt&gt;
@see &lt;a href=&quot;QBoxLayout.html#setSpacing(int)&quot;&gt;&lt;tt&gt;setSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void addItem(com.trolltech.qt.gui.QLayoutItemInterface arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int count()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&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 boolean hasHeightForWidth()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int heightForWidth(int arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void invalidate()" doc="/**
&lt;p&gt;Resets cached information.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QLayoutItemInterface itemAt(int arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&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;This function is reimplemented for internal reasons.&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;
 */"/>
    <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.QLayoutItemInterface takeAt(int arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <enum name="Direction" doc="/**
&lt;p&gt;This type is used to determine the direction of a box layout.&lt;/p&gt;
 */">
        <enum-value name="LeftToRight" doc="/**
&lt;p&gt;Horizontal from left to right.&lt;/p&gt;
 */"/>
        <enum-value name="RightToLeft" doc="/**
&lt;p&gt;Horizontal from right to left.&lt;/p&gt;
 */"/>
        <enum-value name="TopToBottom" doc="/**
&lt;p&gt;Vertical from top to bottom.&lt;/p&gt;
 */"/>
        <enum-value name="BottomToTop" doc="/**
&lt;p&gt;Vertical from bottom to top.&lt;/p&gt;
 */"/>
        <enum-value name="Down" doc="/**
Internal. */"/>
        <enum-value name="Up" doc="/**
Internal. */"/>
</enum>
</class>