📄 qwidgetstack.3qt
字号:
.TH QWidgetStack 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQWidgetStack \- Stack of widgets, where the user can see only the top widget.SH SYNOPSIS.br.PP\fC#include <qwidgetstack.h>\fR.PPInherits QFrame..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQWidgetStack\fR ( QWidget * " "parent" " = 0, const char * " "name" " = 0 )".br.ti -1c.BI "\fB~QWidgetStack\fR ()".br.ti -1c.BI "void \fBaddWidget\fR ( QWidget *, int )".br.ti -1c.BI "void \fBremoveWidget\fR ( QWidget * )".br.ti -1c.BI "virtual QSize \fBsizeHint\fR () const".br.ti -1c.BI "virtual QSize \fBminimumSizeHint\fR () const".br.ti -1c.BI "virtual void \fBshow\fR ()".br.ti -1c.BI "QWidget* \fBwidget\fR ( int ) const".br.ti -1c.BI "int \fBid\fR ( QWidget * ) const".br.ti -1c.BI "QWidget* \fBvisibleWidget\fR () const".br.ti -1c.BI "virtual void \fBsetFrameRect\fR ( const QRect & )".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "void \fBraiseWidget\fR ( int )".br.ti -1c.BI "void \fBraiseWidget\fR ( QWidget * )".br.in -1c.SS "Signals".in +1c.ti -1c.BI "void \fBaboutToShow\fR ( int )".br.ti -1c.BI "void \fBaboutToShow\fR ( QWidget * )".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "virtual void \fBframeChanged\fR ()".br.ti -1c.BI "virtual void \fBresizeEvent\fR ( QResizeEvent * )".br.ti -1c.BI "virtual void \fBsetChildGeometries\fR ()".br.ti -1c.BI "virtual void \fBchildEvent\fR ( QChildEvent * )".br.in -1c.SH DESCRIPTIONThe QWidgetStack class provides a stack of widgets, where the user can see only the top widget..PPThis is often used e.g. in tab and wizard dialogs..PPThe 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()..PPvisibleWidget() is the \fIget\fR equivalent of raiseWidget(); it returns a pointer to the widget that is currently on the top of the stack..PPQWidgetStack also provides the ability to manipulate widgets through application-specfied integer IDs, and to translate from widget pointers to IDs using id() and from IDs to widget pointers using widget(). These numeric IDs have and unique (per QWidgetStack, not globally) and cannot be -1, but apart from that QWidgetStack does not attach any meaning to them..PPThe default widget stack is frame-less and propagates its font and palette to all its children, but you can use the usual QFrame functions (like setFrameStyle()) to add a frame, and use setFontPropagation() and setPalettePropagation() to change the propagation style..PPFinally, QWidgetStack provides a signal, aboutToShow(), which is emitted just before a managed widget is shown..PPSee also: QTabDialog, QTabBar and QFrame..SH MEMBER FUNCTION DOCUMENTATION.SH "QWidgetStack::QWidgetStack ( QWidget * parent = 0, const char * name = 0 )"Constructs an empty widget stack..SH "QWidgetStack::~QWidgetStack ()"Destroys the object and frees any allocated resources..SH "void QWidgetStack::aboutToShow ( QWidget * ) \fC[signal]\fR"This signal is emitted just before a managed widget is shown. The argument is a pointer to the widget..SH "void QWidgetStack::aboutToShow ( int ) \fC[signal]\fR"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..SH "void QWidgetStack::addWidget ( QWidget * w, int id )"Adds \fIw\fR to this stack of widgets, with id \fIid.\fR.PPIf \fIw\fR is not a child of \fCthis,\fR QWidgetStack moves it using reparent()..SH "void QWidgetStack::childEvent ( QChildEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QObject..SH "void QWidgetStack::frameChanged () \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QFrame..SH "int QWidgetStack::id ( QWidget * widget ) const"Returns the ID of the \fIwidget.\fR If \fIwidget\fR is 0 or is not being managed by this widget stack, this function returns -1..PPSee also: widget() and addWidget()..SH "QSize QWidgetStack::minimumSizeHint () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QWidgetStack::raiseWidget ( QWidget * w ) \fC[slot]\fR"Raises \fIw\fR to the top of the widget stack..SH "void QWidgetStack::raiseWidget ( int id ) \fC[slot]\fR"Raises \fIid\fR to the top of the widget stack..PPSee also: visibleWidget()..SH "void QWidgetStack::removeWidget ( QWidget * w )"Removes \fIw\fR from this stack of widgets. Does not delete \fIw.\fR If \fIw\fR is the currently visible widget, no other widget is substituted..PPSee also: visibleWidget() and raiseWidget()..SH "void QWidgetStack::resizeEvent ( QResizeEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QWidgetStack::setChildGeometries () \fC[virtual protected]\fR"Fix up the children's geometries..SH "void QWidgetStack::setFrameRect ( const QRect & r ) \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QFrame..SH "void QWidgetStack::show () \fC[virtual]\fR"Reimplemented in order to set the children's geometries appropriately..PPReimplemented from QWidget..SH "QSize QWidgetStack::sizeHint () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "QWidget * QWidgetStack::visibleWidget () const"Returns a pointer to the currently visible widget (the one on the top of the stack), or 0 if nothing is currently being shown..PPSee also: aboutToShow(), id() and raiseWidget()..SH "QWidget * QWidgetStack::widget ( int id ) const"Returns a pointer to the widget with ID \fIid.\fR If this widget stack does not manage a widget with ID \fIid,\fR this function returns 0..PPSee also: id() and addWidget()..SH "SEE ALSO".BR http://www.troll.no/qt/qwidgetstack.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS. See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -