1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QToolTipGroup Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QToolTipGroup Class Reference</h1><br clear="all">
<p>
The QToolTipGroup class collects tool tips into natural groups.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qtooltip-h.html">qtooltip.h</a>></code>
<p>
Inherits <a href="qobject.html">QObject</a>.
<p><a href="qtooltipgroup-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#1f7c38"><b>QToolTipGroup</b></a>(QObject*parent, constchar*name=0)</div>
<li><div class="fn"><a href="#2bd2a7"><b>~QToolTipGroup</b></a>()</div>
<li><div class="fn">bool<a href="#24ceec"><b>delay</b></a>()const</div>
<li><div class="fn">bool<a href="#1ae468"><b>enabled</b></a>()const</div>
</ul>
<h2>Public Slots</h2>
<ul>
<li><div class="fn">void<a href="#4bf529"><b>setDelay</b></a>(bool)</div>
<li><div class="fn">void<a href="#5039fc"><b>setEnabled</b></a>(bool)</div>
</ul>
<h2>Signals</h2>
<ul>
<li><div class="fn">void<a href="#1b7db8"><b>showTip</b></a>(constQString&)</div>
<li><div class="fn">void<a href="#63deea"><b>removeTip</b></a>()</div>
</ul>
<h2>Properties</h2>
<table border=1 cellpadding=3 cellspacing=0>
<tr><th>Type<th>Name<th>READ<th>WRITE<th>Options
<tr><td>bool<td>delay<td>delay<td>setDelay<td>
<tr><td>bool<td>enabled<td>enabled<td>setEnabled<td>
</table>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QToolTipGroup class collects tool tips into natural groups.
<p>
Tool tips can display <em>two</em> 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.
<p>QToolTipGroup has practically no API, it is only used as an argument
to <a href="qtooltip.html">QToolTip</a>'s member functions, for example like this:
<p><pre> <a href="qtooltipgroup.html">QToolTipGroup</a> * g = new <a href="qtooltipgroup.html">QToolTipGroup</a>( this, "tool tip relay" );
connect( g, SIGNAL(showTip(const QString&)),
myLabel, SLOT(setText(const QString&)) );
connect( g, SIGNAL(removeTip()),
myLabel, SLOT(clear()) );
<a href="qtooltip.html#184bfe">QToolTip::add</a>( giraffeButton, "feed giraffe",
g, "Give the giraffe a meal" );
<a href="qtooltip.html#184bfe">QToolTip::add</a>( gorillaButton, "feed gorilla",
g, "Give the gorilla a meal" );
</pre>
<p>This 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.
<p>Deleting a tool tip group removes the tool tips in it.
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="1f7c38"></a>QToolTipGroup::QToolTipGroup(<a href="qobject.html">QObject</a>*parent, constchar*name=0)</h3>
<p>Constructs a tool tip group.
<h3 class="fn"><a name="2bd2a7"></a>QToolTipGroup::~QToolTipGroup()</h3>
<p>Destroy this tool tip groups and all tool tips in it.
<h3 class="fn">bool<a name="24ceec"></a>QToolTipGroup::delay()const</h3>
<p>Returns TRUE if the group text is shown delayed (at the same time
as the tip) and FALSE if it is shown immediately.
<p>See also <a href="#4bf529">setDelay</a>().
<h3 class="fn">bool<a name="1ae468"></a>QToolTipGroup::enabled()const</h3>
<p>Returns whether tooltips in the group are enabled.
<p>See also <a href="#5039fc">setEnabled</a>().
<h3 class="fn">void<a name="63deea"></a>QToolTipGroup::removeTip() <code>[signal]</code></h3>
<p>This signal is emitted when a tool tip in this group is hidden. See
the QToolTipGroup documentation for an example of use.
<p>See also <a href="#1b7db8">showTip</a>().
<h3 class="fn">void<a name="4bf529"></a>QToolTipGroup::setDelay(boolenable) <code>[slot]</code></h3>
<p>Sets the group to show its text immediately if <em>enable</em> is
FALSE, and delayed (at the same time as the tip text) if <em>enable</em> is
TRUE. The default is TRUE.
<p>See also <a href="#24ceec">delay</a>().
<h3 class="fn">void<a name="5039fc"></a>QToolTipGroup::setEnabled(boolenable) <code>[slot]</code></h3>
<p>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).
<p>See also <a href="qtooltip.html#fc86cc">QToolTip::setEnabled</a>() and <a href="#1ae468">enabled</a>().
<h3 class="fn">void<a name="1b7db8"></a>QToolTipGroup::showTip(const<a href="qstring.html">QString</a>&longText) <code>[signal]</code></h3>
<p>This signal is emitted when one of the tool tips in the group is
displayed. <em>longText</em> is the supplementary text for the displayed
tool tip.
<p>See also <a href="#63deea">removeTip</a>().
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright 2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|