📄 qtooltipgroup.3qt
字号:
'\" t.TH QToolTipGroup 3qt "24 January 2005" "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 NAMEQToolTipGroup \- Collects tool tips into natural groups.br.PP\fC#include <qtooltip.h>\fR.PPInherits QObject..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQToolTipGroup\fR ( QObject * " "parent" ", const char * " "name" " = 0 ) ".br.ti -1c.BI "\fB~QToolTipGroup\fR () ".br.ti -1c.BI "bool \fBdelay\fR () const".br.ti -1c.BI "bool \fBenabled\fR () const".br.in -1c.SS "Public Slots".in +1c.ti -1c.BI "void \fBsetDelay\fR ( bool ) ".br.ti -1c.BI "void \fBsetEnabled\fR ( bool ) ".br.in -1c.SS "Signals".in +1c.ti -1c.BI "void \fBshowTip\fR ( const QString & ) ".br.ti -1c.BI "void \fBremoveTip\fR () ".br.in -1c.SS "Properties".nf.TSl l l l l- - - - -l l l l l.Type Name READ WRITE Optionsbool delay delay setDelaybool enabled enabled setEnabled.TE.fi.SH DESCRIPTIONThe QToolTipGroup class collects tool tips into natural groups..PPTool tips can display \fItwo\fR texts, the one in the tip and optionally another one, typically in a status bar. QToolTipGroup provides a way to link tool tips to this status bar..PPQToolTipGroup has practically no API, it is only used as an argument to QToolTip's member functions, for example like this:.PP.nf.br QToolTipGroup * g = new QToolTipGroup( this, "tool tip relay" );.br connect( g, SIGNAL(showTip(const QString&)),.br myLabel, SLOT(setText(const QString&)) );.br connect( g, SIGNAL(removeTip()),.br myLabel, SLOT(clear()) );.br QToolTip::add( giraffeButton, "feed giraffe",.br g, "Give the giraffe a meal" );.br QToolTip::add( gorillaButton, "feed gorilla",.br g, "Give the gorilla a meal" );.fi.PPThis example makes the object myLabel (which you have to supply) display (one assumes, though you can make myLabel do anything, of course) the strings "Give the giraffe a meal" and "Give the gorilla a meal" while the relevant tool tips are being displayed..PPDeleting a tool tip group removes the tool tips in it..SH MEMBER FUNCTION DOCUMENTATION.SH "QToolTipGroup::QToolTipGroup ( QObject * parent, const char * name = 0 )"Constructs a tool tip group..SH "QToolTipGroup::~QToolTipGroup ()"Destroy this tool tip groups and all tool tips in it..SH "bool QToolTipGroup::delay () const"Returns TRUE if the group text is shown delayed (at the same time as the tip) and FALSE if it is shown immediately..PPSee also setDelay()..SH "bool QToolTipGroup::enabled () const"Returns whether tooltips in the group are enabled..PPSee also setEnabled()..SH "void QToolTipGroup::removeTip () \fC[signal]\fR"This signal is emitted when a tool tip in this group is hidden. See the QToolTipGroup documentation for an example of use..PPSee also showTip()..SH "void QToolTipGroup::setDelay ( bool enable ) \fC[slot]\fR"Sets the group to show its text immediately if \fIenable\fR is FALSE, and delayed (at the same time as the tip text) if \fIenable\fR is TRUE. The default is TRUE..PPSee also delay()..SH "void QToolTipGroup::setEnabled ( bool enable ) \fC[slot]\fR"Sets the group to be enabled (all tool tips in the group show when activated), or disabled (tool tips in the group are never shown)..PPSee also QToolTip::setEnabled() and enabled()..SH "void QToolTipGroup::showTip ( const QString & longText ) \fC[signal]\fR"This signal is emitted when one of the tool tips in the group is displayed. \fIlongText\fR is the supplementary text for the displayed tool tip..PPSee also removeTip()..SH "SEE ALSO".BR http://doc.trolltech.com/qtooltipgroup.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 make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qtooltipgroup.3qt) and the Qtversion (2.3.10).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -