Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QStackedBox class provides a stack of widgets where only the top widget is visible. More...
#include <QStackedBox>
Inherits QFrame.
The QStackedBox class provides a stack of widgets where only the top widget is visible.
All the horizontal box's child widgets will be placed on top of each other, and only the top one will be visible to the user. This top widget is the currentWidget(). It can be changed by setting the currentIndex property, using setCurrentIndex(). The index of a given widget inside the stacked box is retrieved with indexOf(); widget() returns the widget at a given index position.
If you just need a stacked layout (not a widget), use QStackedLayout instead.
See also QTabWidget.
This property holds the number of widgets in this layout.
Access functions:
This property holds the index position of the current widget.
The current index is -1 if there is no current widget. The widget at index position 0 is the one that is on top (i.e. the one that is visible).
Access functions:
See also currentWidget() and indexOf().
Constructs a new QStackedBox as a child of parent.
Destroys the object and frees any allocated resources.
Adds w to this box. The first widget added becomes the initial current widget. Returns the index of w in this box.
This signal is emitted when the current widget is changed. The parameter holds the index of the new current widget, or -1 if there isn't a new one (for example, if there are no widgets in the stacked box).
Returns the current widget, or 0 if there are no child widgets.
Returns the index of w, or -1 if w is not a child.
Inserts w to this box at position index. If index is out of range, the widget gets appened. The first widget added becomes the initial current widget. Returns the index of w in this box.
Removes widget w from this layout, but does not delete it.
Returns the widget at position index, or 0 if there is no such widget.
This signal is emitted when the widget at position index is removed.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp1 |