Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2202

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

<class name="QSplitter" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt; class implements a splitter widget.&lt;/p&gt;
&lt;p&gt;A splitter lets the user control the size of child widgets by dragging the boundary between the children. Any number of widgets may be controlled by a single splitter. The typical use of a &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt; is to create several widgets and add them using &lt;a href=&quot;QSplitter.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QSplitter.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The following example will show a &lt;a href=&quot;QListView.html&quot;&gt;&lt;tt&gt;QListView&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTreeView.html&quot;&gt;&lt;tt&gt;QTreeView&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; side by side, with two splitter handles:&lt;/p&gt;
&lt;pre&gt;        QSplitter *splitter = new QSplitter(parent);
        QListView *listview = new QListView;
        QTreeView *treeview = new QTreeView;
        QTextEdit *textedit = new QTextEdit;
        splitter-&amp;gt;addWidget(listview);
        splitter-&amp;gt;addWidget(treeview);
        splitter-&amp;gt;addWidget(textedit);&lt;/pre&gt;
&lt;p&gt;If a widget is already inside a &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt; when &lt;a href=&quot;QSplitter.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QSplitter.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt; is called, it will move to the new position. This can be used to reorder widgets in the splitter later. You can use &lt;a href=&quot;QSplitter.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QSplitter.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt; to get access to the widgets inside the splitter.&lt;/p&gt;
&lt;p&gt;A default &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt; lays out its children horizontally (side by side); you can use &lt;a href=&quot;QSplitter.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;setOrientation&lt;/tt&gt;&lt;/a&gt;(Qt::Vertical) to lay its children out vertically.&lt;/p&gt;
&lt;p&gt;By default, all widgets can be as large or as small as the user wishes, between the &lt;a href=&quot;QSplitter.html#minimumSizeHint()&quot;&gt;&lt;tt&gt;minimumSizeHint&lt;/tt&gt;&lt;/a&gt; (or &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;) and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; of the widgets.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt; resizes its children dynamically by default. If you would rather have &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt; resize the children only at the end of a resize operation, call &lt;a href=&quot;QSplitter.html#setOpaqueResize(boolean)&quot;&gt;&lt;tt&gt;setOpaqueResize&lt;/tt&gt;&lt;/a&gt;(false).&lt;/p&gt;
&lt;p&gt;The initial distribution of size between the widgets is determined by the initial size of each widget. You can also use &lt;a href=&quot;QSplitter.html#setSizes(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setSizes&lt;/tt&gt;&lt;/a&gt; to set the sizes of all the widgets. The function &lt;a href=&quot;QSplitter.html#sizes()&quot;&gt;&lt;tt&gt;sizes&lt;/tt&gt;&lt;/a&gt; returns the sizes set by the user. Alternatively, you can save and restore the sizes of the widgets from a &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; using &lt;a href=&quot;QSplitter.html#saveState()&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSplitter.html#restoreState(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;restoreState&lt;/tt&gt;&lt;/a&gt; respectively.&lt;/p&gt;
&lt;p&gt;When you &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; a child its space will be distributed among the other children. It will be reinstated when you &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; it again.&lt;/p&gt;

@see &lt;a href=&quot;QSplitterHandle.html&quot;&gt;&lt;tt&gt;QSplitterHandle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QHBoxLayout.html&quot;&gt;&lt;tt&gt;QHBoxLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QVBoxLayout.html&quot;&gt;&lt;tt&gt;QVBoxLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabWidget.html&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void splitterMoved(int pos, int index)" doc="/**
&lt;p&gt;This signal is emitted when the splitter handle at a particular &lt;tt&gt;index&lt;/tt&gt; has been moved to position &lt;tt&gt;pos&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For right-to-left languages such as Arabic and Hebrew, the layout of horizontal splitters is reversed. &lt;tt&gt;pos&lt;/tt&gt; is then the distance from the right edge of the widget.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int pos, int index)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QSplitter.html#moveSplitter(int, int)&quot;&gt;&lt;tt&gt;moveSplitter&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QSplitter(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a horizontal splitter with the &lt;tt&gt;parent&lt;/tt&gt; arguments is passed on to the &lt;a href=&quot;QFrame.html#QFrame(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QFrame&lt;/tt&gt;&lt;/a&gt; constructor.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;setOrientation&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QSplitter()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QSplitter(com.trolltech.qt.core.Qt.Orientation arg__1, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a splitter with the given &lt;tt&gt;arg__1&lt;/tt&gt; and &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;setOrientation&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QSplitter(com.trolltech.qt.core.Qt.Orientation arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSplitter.html#QSplitter(com.trolltech.qt.core.Qt.Orientation, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSplitter&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, 0). */"/>
    <method name="public final void addWidget(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;widget&lt;/tt&gt; to the splitter's layout after all the other items.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;widget&lt;/tt&gt; is already in the splitter, it will be moved to the new position.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean childrenCollapsible()" doc="/**
&lt;p&gt;Returns whether child widgets can be resized down to size 0 by the user.&lt;/p&gt;
&lt;p&gt;By default, children are collapsible. It is possible to enable and disable the collapsing of individual children using &lt;a href=&quot;QSplitter.html#setCollapsible(int, boolean)&quot;&gt;&lt;tt&gt;setCollapsible&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#setChildrenCollapsible(boolean)&quot;&gt;&lt;tt&gt;setChildrenCollapsible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#setCollapsible(int, boolean)&quot;&gt;&lt;tt&gt;setCollapsible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final int closestLegalPosition(int arg__1, int arg__2)" doc="/**
&lt;p&gt;Returns the closest legal position to &lt;tt&gt;arg__1&lt;/tt&gt; of the widget with index &lt;tt&gt;arg__2&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For right-to-left languages such as Arabic and Hebrew, the layout of horizontal splitters is reversed. Positions are then measured from the right edge of the widget.&lt;/p&gt;

@see &lt;tt&gt;getRange&lt;/tt&gt; */"/>
    <method name="public final int count()" doc="/**
&lt;p&gt;Returns the number of widgets contained in the splitter's layout.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#handle(int)&quot;&gt;&lt;tt&gt;handle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QSplitterHandle handle(int index)" doc="/**
&lt;p&gt;Returns the handle to the left (or above) for the item in the splitter's layout at the given &lt;tt&gt;index&lt;/tt&gt;. The handle at index 0 is always hidden.&lt;/p&gt;
&lt;p&gt;For right-to-left languages such as Arabic and Hebrew, the layout of horizontal splitters is reversed. The handle will be to the right of the widget at &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#createHandle()&quot;&gt;&lt;tt&gt;createHandle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#setHandleWidth(int)&quot;&gt;&lt;tt&gt;setHandleWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int handleWidth()" doc="/**
&lt;p&gt;Returns the width of the splitter handles.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#setHandleWidth(int)&quot;&gt;&lt;tt&gt;setHandleWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int indexOf(com.trolltech.qt.gui.QWidget w)" doc="/**
&lt;p&gt;Returns the index in the splitter's layout of the specified &lt;tt&gt;w&lt;/tt&gt;. This also works for handles.&lt;/p&gt;
&lt;p&gt;Handles are numbered from 0. There are as many handles as there are child widgets, but the handle at position 0 is always hidden.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertWidget(int index, com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Inserts the &lt;tt&gt;widget&lt;/tt&gt; specified into the splitter's layout at the given &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;widget&lt;/tt&gt; is already in the splitter, it will be moved to the new position.&lt;/p&gt;
&lt;p&gt;if &lt;tt&gt;index&lt;/tt&gt; is an invalid index, then the widget will be inserted at the end.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isCollapsible(int index)" doc="/**
&lt;p&gt;Returns true if the widget at &lt;tt&gt;index&lt;/tt&gt; is collapsible, otherwise returns false&lt;/p&gt;
 */"/>
    <method name="protected final void moveSplitter(int pos, int index)" doc="/**
&lt;p&gt;Moves the left or top edge of the splitter handle at &lt;tt&gt;index&lt;/tt&gt; as close as possible to position &lt;tt&gt;pos&lt;/tt&gt;, which is the distance from the left or top edge of the widget.&lt;/p&gt;
&lt;p&gt;For right-to-left languages such as Arabic and Hebrew, the layout of horizontal splitters is reversed. &lt;tt&gt;pos&lt;/tt&gt; is then the distance from the right edge of the widget.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#splitterMoved(int, int)&quot;&gt;&lt;tt&gt;splitterMoved&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#closestLegalPosition(int, int)&quot;&gt;&lt;tt&gt;closestLegalPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRange&lt;/tt&gt; */"/>
    <method name="public final boolean opaqueResize()" doc="/**
&lt;p&gt;Returns whether resizing is opaque.&lt;/p&gt;
&lt;p&gt;Opaque resizing is on by default.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#setOpaqueResize(boolean)&quot;&gt;&lt;tt&gt;setOpaqueResize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QTextStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QTextStream arg__1)"/>
    <method name="public final com.trolltech.qt.core.Qt.Orientation orientation()" doc="/**
&lt;p&gt;Returns the orientation of the splitter.&lt;/p&gt;
&lt;p&gt;By default the orientation is horizontal (i.e&amp;#x2e;, the widgets are laid out side by side). The possible orientations are Qt::Horizontal and Qt::Vertical.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;setOrientation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSplitterHandle::orientation&lt;/tt&gt; */"/>
    <method name="public final void refresh()" doc="/**
&lt;p&gt;Updates the splitter's state. You should not need to call this function.&lt;/p&gt;
 */"/>
    <method name="public final boolean restoreState(com.trolltech.qt.core.QByteArray state)" doc="/**
&lt;p&gt;Restores the splitter's layout to the &lt;tt&gt;state&lt;/tt&gt; specified. Returns true if the state is restored; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Typically this is used in conjunction with &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; to restore the size from a past session. Here is an example:&lt;/p&gt;
&lt;p&gt;Restore the splitters's state:&lt;/p&gt;
&lt;pre&gt;        QSettings settings;
        splitter-&amp;gt;restoreState(settings.value(&amp;quot;splitterSizes&amp;quot;).toByteArray());&lt;/pre&gt;
&lt;p&gt;A failure to restore the splitter's layout may result from either invalid or out-of-date data in the supplied byte array.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#saveState()&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray saveState()" doc="/**
&lt;p&gt;Saves the state of the splitter's layout.&lt;/p&gt;
&lt;p&gt;Typically this is used in conjunction with &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; to remember the size for a future session. A version number is stored as part of the data. Here is an example:&lt;/p&gt;
&lt;pre&gt;        QSettings settings;
        settings.setValue(&amp;quot;splitterSizes&amp;quot;, splitter-&amp;gt;saveState());&lt;/pre&gt;

@see &lt;a href=&quot;QSplitter.html#restoreState(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;restoreState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setChildrenCollapsible(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether child widgets can be resized down to size 0 by the user to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, children are collapsible. It is possible to enable and disable the collapsing of individual children using &lt;a href=&quot;QSplitter.html#setCollapsible(int, boolean)&quot;&gt;&lt;tt&gt;setCollapsible&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#childrenCollapsible()&quot;&gt;&lt;tt&gt;childrenCollapsible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#setCollapsible(int, boolean)&quot;&gt;&lt;tt&gt;setCollapsible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCollapsible(int index, boolean arg__2)" doc="/**
&lt;p&gt;Sets whether the child widget at index &lt;tt&gt;index&lt;/tt&gt; is collapsible to &lt;tt&gt;arg__2&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, children are collapsible, meaning that the user can resize them down to size 0, even if they have a non-zero &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QSplitter.html#minimumSizeHint()&quot;&gt;&lt;tt&gt;minimumSizeHint&lt;/tt&gt;&lt;/a&gt;. This behavior can be changed on a per-widget basis by calling this function, or globally for all the widgets in the splitter by setting the &lt;a href=&quot;QSplitter.html#childrenCollapsible()&quot;&gt;&lt;tt&gt;childrenCollapsible&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#isCollapsible(int)&quot;&gt;&lt;tt&gt;isCollapsible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#childrenCollapsible()&quot;&gt;&lt;tt&gt;childrenCollapsible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHandleWidth(int arg__1)" doc="/**
&lt;p&gt;Sets the width of the splitter handles to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#handleWidth()&quot;&gt;&lt;tt&gt;handleWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOpaqueResize(boolean opaque)" doc="/**
&lt;p&gt;Sets whether resizing is opaque to &lt;tt&gt;opaque&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Opaque resizing is on by default.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#opaqueResize()&quot;&gt;&lt;tt&gt;opaqueResize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOpaqueResize()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSplitter.html#setOpaqueResize(boolean)&quot;&gt;&lt;tt&gt;setOpaqueResize&lt;/tt&gt;&lt;/a&gt;(true). */"/>
    <method name="public final void setOrientation(com.trolltech.qt.core.Qt.Orientation arg__1)" doc="/**
&lt;p&gt;Sets the orientation of the splitter to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default the orientation is horizontal (i.e&amp;#x2e;, the widgets are laid out side by side). The possible orientations are Qt::Horizontal and Qt::Vertical.&lt;/p&gt;

@see &lt;tt&gt;QSplitterHandle::orientation&lt;/tt&gt; */"/>
    <method name="protected final void setRubberBand(int position)" doc="/**
&lt;p&gt;Displays a rubber band at position &lt;tt&gt;position&lt;/tt&gt;. If &lt;tt&gt;position&lt;/tt&gt; is negative, the rubber band is removed.&lt;/p&gt;
 */"/>
    <method name="public final void setSizes(java.util.List&lt;java.lang.Integer&gt; list)" doc="/**
&lt;p&gt;Sets the size parameters to the values given in the &lt;tt&gt;list&lt;/tt&gt;. If the splitter is horizontal, the values set the widths of each widget going from left to right. If the splitter is vertical, the values set the heights of each widget going from top to bottom. Extra values in the &lt;tt&gt;list&lt;/tt&gt; are ignored.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;list&lt;/tt&gt; contains too few values, the result is undefined but the program will still be well-behaved.&lt;/p&gt;
&lt;p&gt;The values in &lt;tt&gt;list&lt;/tt&gt; should be the height or width (depending on &lt;a href=&quot;QSplitter.html#orientation()&quot;&gt;&lt;tt&gt;orientation&lt;/tt&gt;&lt;/a&gt;) that the widgets should be resized to.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#sizes()&quot;&gt;&lt;tt&gt;sizes&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStretchFactor(int index, int stretch)" doc="/**
&lt;p&gt;Updates the size policy of the widget at position &lt;tt&gt;index&lt;/tt&gt; to have a stretch factor of &lt;tt&gt;stretch&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function is provided for convenience. It is equivalent to&lt;/p&gt;
&lt;pre&gt;    QWidget *widget = splitter-&amp;gt;widget(index);
    QSizePolicy policy = widget-&amp;gt;sizePolicy();
    policy.setHorizontalStretch(stretch);
    policy.setVerticalStretch(stretch);
    widget-&amp;gt;setSizePolicy(policy);&lt;/pre&gt;

@see &lt;a href=&quot;QSplitter.html#setSizes(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setSizes&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#widget(int)&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.Integer&gt; sizes()" doc="/**
&lt;p&gt;Returns a list of the size parameters of all the widgets in this splitter.&lt;/p&gt;
&lt;p&gt;If the splitter's orientation is horizontal, the list is a list of widget widths; if the orientation is vertical, the list is a list of widget heights.&lt;/p&gt;
&lt;p&gt;Giving the values to another splitter's &lt;a href=&quot;QSplitter.html#setSizes(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setSizes&lt;/tt&gt;&lt;/a&gt; function will produce a splitter with the same layout as this one.&lt;/p&gt;
&lt;p&gt;The easiest way to iterate over the list is to use the Java-style iterators.&lt;/p&gt;
&lt;pre&gt;        QListIterator&amp;lt;int&amp;gt; it(splitter-&amp;gt;sizes());
        while (it.hasNext())
            processSize(it.next());&lt;/pre&gt;

@see &lt;a href=&quot;QSplitter.html#setSizes(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setSizes&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget widget(int index)" doc="/**
&lt;p&gt;Returns the widget at the given &lt;tt&gt;index&lt;/tt&gt; in the splitter's layout.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#handle(int)&quot;&gt;&lt;tt&gt;handle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void childEvent(com.trolltech.qt.core.QChildEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected com.trolltech.qt.gui.QSplitterHandle createHandle()" doc="/**
&lt;p&gt;Returns a new splitter handle as a child widget of this splitter. This function can be reimplemented in subclasses to provide support for custom handles.&lt;/p&gt;

@see &lt;a href=&quot;QSplitter.html#handle(int)&quot;&gt;&lt;tt&gt;handle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSplitter.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent 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;
 */"/>
</class>