⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwidgetstack.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
字号:
'\" t.TH QWidgetStack 3qt "9 December 2002" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech 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 of which only the top widget is user-visible.SH SYNOPSIS\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 "\fBQWidgetStack\fR ( QWidget * parent, const char * name, WFlags f )".br.ti -1c.BI "\fB~QWidgetStack\fR ()".br.ti -1c.BI "int \fBaddWidget\fR ( QWidget * w, int id = -1 )".br.ti -1c.BI "void \fBremoveWidget\fR ( QWidget * w )".br.ti -1c.BI "QWidget * \fBwidget\fR ( int id ) const".br.ti -1c.BI "int \fBid\fR ( QWidget * widget ) const".br.ti -1c.BI "QWidget * \fBvisibleWidget\fR () const".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "void \fBraiseWidget\fR ( int id )".br.ti -1c.BI "void \fBraiseWidget\fR ( QWidget * w )".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 \fBsetChildGeometries\fR ()".br.in -1c.SH DESCRIPTIONThe QWidgetStack class provides a stack of widgets of which only the top widget is user-visible..PPThe application programmer can move any widget to the top of the stack at any time using 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 at the top of the stack..PPQWidgetStack 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 (per QWidgetStack, not globally), but QWidgetStack does not attach any additional meaning to them..PPThe default widget stack is frameless, but you can use the usual QFrame functions (such as setFrameStyle()) to add a frame..PPQWidgetStack provides a signal, aboutToShow(), which is emitted just before a managed widget is shown..PPSee also QTabDialog, QTabBar, QFrame, and Organizers..SH MEMBER FUNCTION DOCUMENTATION.SH "QWidgetStack::QWidgetStack ( QWidget * parent = 0, const char * name = 0 )"Constructs an empty widget stack..PPThe \fIparent\fR and \fIname\fR arguments are passed to the QFrame constructor..SH "QWidgetStack::QWidgetStack ( QWidget * parent, const char * name, WFlags f )"Constructs an empty widget stack..PPThe \fIparent\fR, \fIname\fR and \fIf\fR arguments are passed to the QFrame constructor..SH "QWidgetStack::~QWidgetStack ()"Destroys the object and frees any allocated resources..SH "void QWidgetStack::aboutToShow ( int )\fC [signal]\fR"This signal is emitted just before a managed widget is shown if that managed widget has an id != -1. The argument is the numeric id of the widget..PPIf you call visibleWidget() in a slot connected to aboutToShow(), the widget it returns is the one that is currently visible, not the one that is about to be shown..SH "void QWidgetStack::aboutToShow ( QWidget * )\fC [signal]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPThis signal is emitted just before a managed widget is shown. The argument is a pointer to the widget..PPIf you call visibleWidget() in a slot connected to aboutToShow(), the widget returned is the one that is currently visible, not the one that is about to be shown..SH "int QWidgetStack::addWidget ( QWidget * w, int id = -1 )"Adds widget \fIw\fR to this stack of widgets, with id \fIid\fR..PPIf you pass an id >= 0 this id is used. If you pass an \fIid\fR of -1 (the default), the widgets will be numbered automatically. If you pass -2 a unique negative integer will be generated. No widget has an id of -1. Returns the id or -1 on failure (e.g. \\w is 0)..PPIf \fIw\fR is not a child of this QWidgetStack moves it using reparent()..PPExample: xform/xform.cpp..SH "int QWidgetStack::id ( QWidget * widget ) const"Returns the id of the \fIwidget\fR. Returns -1 if \fIwidget\fR is 0 or is not being managed by this widget stack..PPSee also widget() and addWidget()..SH "void QWidgetStack::raiseWidget ( int id )\fC [slot]\fR"Raises the widget with id, \fIid\fR, to the top of the widget stack..PPSee also visibleWidget()..PPExample: xform/xform.cpp..SH "void QWidgetStack::raiseWidget ( QWidget * w )\fC [slot]\fR"This is an overloaded member function, provided for convenience. It behaves essentially like the above function..PPRaises widget \fIw\fR to the top of the widget stack..SH "void QWidgetStack::removeWidget ( QWidget * w )"Removes widget \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::setChildGeometries ()\fC [virtual protected]\fR"Fixes up the children's geometries..SH "QWidget * QWidgetStack::visibleWidget () const"Returns the currently visible widget (the one at 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 the widget with id \fIid\fR. Returns 0 if this widget stack does not manage a widget with id \fIid\fR..PPSee also id() and addWidget()..SH "SEE ALSO".BR http://doc.trolltech.com/qwidgetstack.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qwidgetstack.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -