QToolTipGroup(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– 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 () const
  • bool 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 delayed
  • bool 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 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