QToolTipGroup(3qt)
π QToolTipGroup π
okay bestie, sit down, hydrate, because we're talking about QToolTipGroup from the Qt 3 docs, manual page QToolTipGroup(3qt). it's a tiny little class with main character energy and honestly? obsessed. π¦
β¨ NAME β¨
QToolTipGroup β collects tool tips into related groups. that's it, that's the whole job, and it does it flawlessly π
β¨ SYNOPSIS β¨
#include <qtooltip.h>
Inherits QObject.
πΈ Public Members πΈ
QToolTipGroup ( QObject * parent, const char * name = 0 )~QToolTipGroup ()bool delay () constbool enabled () const
πΈ Public Slots πΈ
void setDelay ( bool )void setEnabled ( bool )
πΈ Signals πΈ
void showTip ( const QString & longText )void removeTip ()
πΈ Properties πΈ
bool delayβ whether the display of the group text is delayedbool enabledβ whether tool tips in the group are enabled
β¨ DESCRIPTION β¨
the QToolTipGroup class collects tool tips into related groups. periodt.
so here's the tea π« β tool tips can display two texts: one in the tip itself, and (optionally) one that's typically chilling in a status bar. QToolTipGroup is literally just the way to link tool tips to that status bar. it's the group chat moderator of tool tips fr fr.
QToolTipGroup has practically no API β it's only used as an argument to QToolTip's member functions. like, it's the plus-one at the party, not the party. for example, like this:
QToolTipGroup * grp = new QToolTipGroup( this, "tool tip relay" );
connect( grp, SIGNAL(showTip(const QString&)),
myLabel, SLOT(setText(const QString&)) );
connect( grp, SIGNAL(removeTip()),
myLabel, SLOT(clear()) );
QToolTip::add( giraffeButton, "feed giraffe",
grp, "Give the giraffe a meal" );
QToolTip::add( gorillaButton, "feed gorilla",
grp, "Give the gorilla a meal" );
this example makes the object myLabel (which you must supply, bestie, it's not gonna manifest itself) display β one assumes, though you can make myLabel do literally anything, of course β the strings "Give the giraffe a meal" and "Give the gorilla a meal" while the relevant tool tips are being displayed. giraffe girlies and gorilla girlies both get fed π¦π¦
β οΈ heads up: deleting a tool tip group removes the tool tips in it. gone. no thoughts, no trace. π
see also Help System.
β¨ MEMBER FUNCTION DOCUMENTATION β¨
QToolTipGroup::QToolTipGroup ( QObject * parent, const char * name = 0 )
constructs a tool tip group called name, with parent parent. iconic entrance, no notes π
QToolTipGroup::~QToolTipGroup ()
destroys this tool tip group and all tool tips in it. the whole squad leaves together, that's loyalty π
bool QToolTipGroup::delay () const
returns TRUE if the display of the group text is delayed; otherwise returns FALSE. see the "delay" property for the details, bestie.
bool QToolTipGroup::enabled () const
returns TRUE if tool tips in the group are enabled; otherwise returns FALSE. see the "enabled" property for the details.
void QToolTipGroup::removeTip () [signal]
this signal is emitted when a tool tip in this group is hidden. see the QToolTipGroup documentation for an example of use.
see also showTip().
Example: helpsystem/mainwindow.cpp.
void QToolTipGroup::setDelay ( bool ) [slot]
sets whether the display of the group text is delayed. see the "delay" property for the details.
void QToolTipGroup::setEnabled ( bool ) [slot]
sets whether tool tips in the group are enabled. see the "enabled" property for the details.
void QToolTipGroup::showTip ( const QString & longText ) [signal]
this signal is emitted when one of the tool tips in the group is displayed. longText is the extra text for the displayed tool tip. it's giving β¨ bonus content β¨
see also removeTip().
Example: helpsystem/mainwindow.cpp.
β¨ Property Documentation β¨
bool delay
this property holds whether the display of the group text is delayed.
if set to TRUE (the default, no cap), the group text is displayed at the same time as the tool tip. otherwise, the group text is displayed immediately when the cursor enters the widget. so basically: wait for the tip, or barge in first. choose your vibe π
set this property's value with setDelay() and get this property's value with delay().
bool enabled
this property holds whether tool tips in the group are enabled.
this property's default is TRUE.
set this property's value with setEnabled() and get this property's value with enabled().
β¨ SEE ALSO β¨
β¨ COPYRIGHT β¨
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. π
β¨ AUTHOR β¨
Generated automatically from the source code. (yes, the author is a robot. a robot ate and left no crumbs. π)
β¨ BUGS β¨
if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you. π«Ά
the definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. (she's a convenience queen, not an official queen, iykyk π)
if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qtooltipgroup.3qt) and the Qt version (3.3.8). π
and that's the whole page, bestie β brought to you by Trolltech AS, 2 February 2007, running Qt 3.3.8 π go feed a giraffe, slay, bye β¨ππ¦
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms