![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
The QWidgetStack class provides a stack of widgets in which the user can see only the top widget. More...
#include <qwidgetstack.h>
Inherits QFrame.
The QWidgetStack class provides a stack of widgets in which the user can see only the top widget.
The application programmer can move any widget to the top of the stack at any time using the slot raiseWidget(), and add or remove widgets using addWidget() and removeWidget().
visibleWidget() is the get equivalent of raiseWidget(); it returns a pointer to the widget that is currently on the top of the stack.
QWidgetStack also provides the ability to manipulate widgets through application-specified integer ids. You can also translate from widget pointers to ids using id() and from ids to widget pointers using widget(). These numeric ids are unique (in each QWidgetStack, not globally) and cannot be -1, but QWidgetStack does not attach any additional meaning to them.
The default widget stack is frameless, but you can use the usual QFrame functions (such as setFrameStyle()) to add a frame.
Finally, QWidgetStack provides a signal, aboutToShow(), which is emitted just before a managed widget is shown.
See also QTabDialog, QTabBar, QFrame and Organizers.
This signal is emitted just before a managed widget is shown if that managed widget has a non-zero id. The argument is the numeric id of the widget.
This signal is emitted just before a managed widget is shown. The argument is a pointer to the widget.
If w is not a child of this, QWidgetStack moves it using reparent().
Example: xform/xform.cpp.
See also widget() and addWidget().
See also visibleWidget().
Example: xform/xform.cpp.
Raises w to the top of the widget stack.
See also visibleWidget() and raiseWidget().
See also aboutToShow(), id() and raiseWidget().
See also id() and addWidget().
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta3
|