<class name="QStackedLayout" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; class provides a stack of widgets where only one widget is visible at a time.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; can be used to create a user interface similar to the one provided by &lt;a href=&quot;QTabWidget.html&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt;. There is also a convenience &lt;a href=&quot;QStackedWidget.html&quot;&gt;&lt;tt&gt;QStackedWidget&lt;/tt&gt;&lt;/a&gt; class built on top of &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; can be populated with a number of child widgets (&amp;quot;pages&amp;quot;). For example:&lt;/p&gt;
&lt;pre&gt;        QWidget *firstPageWidget = new QWidget;
        QWidget *secondPageWidget = new QWidget;
        QWidget *thirdPageWidget = new QWidget;

        QStackedLayout *stackedLayout = new QStackedLayout;
        stackedLayout-&amp;gt;addWidget(firstPageWidget);
        stackedLayout-&amp;gt;addWidget(secondPageWidget);
        stackedLayout-&amp;gt;addWidget(thirdPageWidget);

        QVBoxLayout *mainLayout = new QVBoxLayout;
        mainLayout-&amp;gt;addLayout(stackedLayout);
        setLayout(mainLayout);&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; provides no intrinsic means for the user to switch page. This is typically done through a &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt; or a &lt;a href=&quot;QListWidget.html&quot;&gt;&lt;tt&gt;QListWidget&lt;/tt&gt;&lt;/a&gt; that stores the titles of the &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt;'s pages. For example:&lt;/p&gt;
&lt;pre&gt;        QComboBox *pageComboBox = new QComboBox;
        pageComboBox-&amp;gt;addItem(tr(&amp;quot;Page 1&amp;quot;));
        pageComboBox-&amp;gt;addItem(tr(&amp;quot;Page 2&amp;quot;));
        pageComboBox-&amp;gt;addItem(tr(&amp;quot;Page 3&amp;quot;));
        connect(pageComboBox, SIGNAL(activated(int)),
                stackedLayout, SLOT(setCurrentIndex(int)));&lt;/pre&gt;
&lt;p&gt;When populating a layout, the widgets are added to an internal list. The &lt;a href=&quot;QLayout.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; function returns the index of a widget in that list. The widgets can either be added to the end of the list using the &lt;a href=&quot;QLayout.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt; function, or inserted at a given index using the &lt;a href=&quot;QStackedLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt; function. The &lt;a href=&quot;QLayout.html#removeWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;removeWidget&lt;/tt&gt;&lt;/a&gt; function removes the widget at the given index from the layout. The number of widgets contained in the layout, can be obtained using the &lt;a href=&quot;QStackedLayout.html#count()&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QStackedLayout.html#widget()&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&gt; function returns the widget at a given index position. The index of the widget that is shown on screen is given by &lt;a href=&quot;QStackedLayout.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt; and can be changed using &lt;a href=&quot;QStackedLayout.html#setCurrentIndex(int)&quot;&gt;&lt;tt&gt;setCurrentIndex&lt;/tt&gt;&lt;/a&gt;. In a similar manner, the currently shown widget can be retrieved using the &lt;a href=&quot;QStackedLayout.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt; function, and altered using the &lt;a href=&quot;QStackedLayout.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Whenever the current widget in the layout changes or a widget is removed from the layout, the &lt;a href=&quot;QStackedLayout.html#currentChanged(int)&quot;&gt;&lt;tt&gt;currentChanged&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStackedLayout.html#widgetRemoved(int)&quot;&gt;&lt;tt&gt;widgetRemoved&lt;/tt&gt;&lt;/a&gt; signals are emitted respectively.&lt;/p&gt;

@see &lt;a href=&quot;QStackedWidget.html&quot;&gt;&lt;tt&gt;QStackedWidget&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 currentChanged(int index)" doc="/**
&lt;p&gt;This signal is emitted whenever the current widget in the layout changes. The &lt;tt&gt;index&lt;/tt&gt; specifies the index of the new current 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 index)&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;QStackedLayout.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QStackedLayout.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void widgetRemoved(int index)" doc="/**
&lt;p&gt;This signal is emitted whenever a widget is removed from the layout. The widget's &lt;tt&gt;index&lt;/tt&gt; is passed as parameter.&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 index)&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;QLayout.html#removeWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;removeWidget&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QStackedLayout(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a new &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This layout will install itself on the &lt;tt&gt;parent&lt;/tt&gt; widget and manage the geometry of its children.&lt;/p&gt;
 */"/>
    <method name="public QStackedLayout(com.trolltech.qt.gui.QLayout parentLayout)" doc="/**
&lt;p&gt;Constructs a new &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; and inserts it into the given &lt;tt&gt;parentLayout&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QStackedLayout()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; with no parent.&lt;/p&gt;
&lt;p&gt;This &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; must be installed on a widget later on to become effective.&lt;/p&gt;

@see &lt;a href=&quot;QLayout.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#insertWidget(int, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;insertWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int addStackedWidget(com.trolltech.qt.gui.QWidget w)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;w&lt;/tt&gt; to the end of this layout and returns the index position of the &lt;tt&gt;w&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; is empty before this function is called, the given &lt;tt&gt;w&lt;/tt&gt; becomes the current widget.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.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;QLayout.html#removeWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;removeWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int currentIndex()" doc="/**
&lt;p&gt;Returns the index position of the widget that is visible.&lt;/p&gt;
&lt;p&gt;The current index is -1 if there is no current widget.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.html#setCurrentIndex(int)&quot;&gt;&lt;tt&gt;setCurrentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget currentWidget()" doc="/**
&lt;p&gt;Returns the current widget, or 0 if there are no widgets in this layout.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int insertWidget(int index, com.trolltech.qt.gui.QWidget w)" doc="/**
&lt;p&gt;Inserts the given &lt;tt&gt;w&lt;/tt&gt; at the given &lt;tt&gt;index&lt;/tt&gt; in this &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt;. If &lt;tt&gt;index&lt;/tt&gt; is out of range, the widget is appended (in which case it is the actual index of the &lt;tt&gt;w&lt;/tt&gt; that is returned).&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QStackedLayout.html#QStackedLayout()&quot;&gt;&lt;tt&gt;QStackedLayout&lt;/tt&gt;&lt;/a&gt; is empty before this function is called, the given &lt;tt&gt;w&lt;/tt&gt; becomes the current widget.&lt;/p&gt;
&lt;p&gt;Inserting a new widget at an index less than or equal to the current index will increment the current index, but keep the current widget.&lt;/p&gt;

@see &lt;a href=&quot;QLayout.html#addWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;addWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html#removeWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;removeWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#setCurrentWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCurrentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCurrentIndex(int index)" doc="/**
&lt;p&gt;Sets the index position of the widget that is visible to &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The current index is -1 if there is no current widget.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCurrentWidget(com.trolltech.qt.gui.QWidget w)" doc="/**
&lt;p&gt;Sets the current widget to be the specified &lt;tt&gt;w&lt;/tt&gt;. The new current widget must already be contained in this stacked layout.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.html#setCurrentIndex(int)&quot;&gt;&lt;tt&gt;setCurrentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget widget(int arg__1)" doc="/**
&lt;p&gt;Returns the widget at the given &lt;tt&gt;arg__1&lt;/tt&gt;, or 0 if there is no widget at the given position.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.html#currentWidget()&quot;&gt;&lt;tt&gt;currentWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html#indexOf(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void addItem(com.trolltech.qt.gui.QLayoutItemInterface item)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int count()" doc="/**
&lt;p&gt;Returns the number of widgets contained in the layout.&lt;/p&gt;

@see &lt;a href=&quot;QStackedLayout.html#currentIndex()&quot;&gt;&lt;tt&gt;currentIndex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStackedLayout.html#widget()&quot;&gt;&lt;tt&gt;widget&lt;/tt&gt;&lt;/a&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 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 rect)" 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;
 */"/>
    <method name="public com.trolltech.qt.gui.QWidget widget()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>
