summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/qtooltipgroup.3qt
blob: e3e0108c5137504daf40a61aaae6fe4442c75a10 (plain)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
'\" t
.TH QToolTipGroup 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA.  All rights reserved.  See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QToolTipGroup \- Collects tool tips into related groups
.SH SYNOPSIS
\fC#include <ntqtooltip.h>\fR
.PP
Inherits 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 & longText )"
.br
.ti -1c
.BI "void \fBremoveTip\fR ()"
.br
.in -1c
.SS "Properties"
.in +1c
.ti -1c
.BI "bool \fBdelay\fR - whether the display of the group text is delayed"
.br
.ti -1c
.BI "bool \fBenabled\fR - whether tool tips in the group are enabled"
.br
.in -1c
.SH DESCRIPTION
The QToolTipGroup class collects tool tips into related groups.
.PP
Tool tips can display \fItwo\fR texts: one in the tip and (optionally) one that is typically in a status bar. QToolTipGroup provides a way to link tool tips to this status bar.
.PP
QToolTipGroup has practically no API; it is only used as an argument to QToolTip's member functions, for example like this:
.PP
.nf
.br
        QToolTipGroup * grp = new QToolTipGroup( this, "tool tip relay" );
.br
        connect( grp, SIGNAL(showTip(const QString&)),
.br
                 myLabel, SLOT(setText(const QString&)) );
.br
        connect( grp, SIGNAL(removeTip()),
.br
                 myLabel, SLOT(clear()) );
.br
        QToolTip::add( giraffeButton, "feed giraffe",
.br
                       grp, "Give the giraffe a meal" );
.br
        QToolTip::add( gorillaButton, "feed gorilla",
.br
                       grp, "Give the gorilla a meal" );
.br
.fi
.PP
This example makes the object myLabel (which you must 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.
.PP
Deleting a tool tip group removes the tool tips in it.
.PP
See also Help System.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QToolTipGroup::QToolTipGroup ( QObject * parent, const char * name = 0 )"
Constructs a tool tip group called \fIname\fR, with parent \fIparent\fR.
.SH "QToolTipGroup::~QToolTipGroup ()"
Destroys this tool tip group and all tool tips in it.
.SH "bool QToolTipGroup::delay () const"
Returns TRUE if the display of the group text is delayed; otherwise returns FALSE. See the "delay" property for details.
.SH "bool QToolTipGroup::enabled () const"
Returns TRUE if tool tips in the group are enabled; otherwise returns FALSE. See the "enabled" property for details.
.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.
.PP
See also showTip().
.PP
Example: helpsystem/mainwindow.cpp.
.SH "void QToolTipGroup::setDelay ( bool )\fC [slot]\fR"
Sets whether the display of the group text is delayed. See the "delay" property for details.
.SH "void QToolTipGroup::setEnabled ( bool )\fC [slot]\fR"
Sets whether tool tips in the group are enabled. See the "enabled" property for details.
.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 extra text for the displayed tool tip.
.PP
See also removeTip().
.PP
Example: helpsystem/mainwindow.cpp.
.SS "Property Documentation"
.SH "bool delay"
This property holds whether the display of the group text is delayed.
.PP
If set to TRUE (the default), 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.
.PP
Set this property's value with setDelay() and get this property's value with delay().
.SH "bool enabled"
This property holds whether tool tips in the group are enabled.
.PP
This property's default is TRUE.
.PP
Set this property's value with setEnabled() and get this property's value with enabled().

.SH "SEE ALSO"
.BR http://doc.trolltech.com/qtooltipgroup.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If 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.
.P
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. 
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (qtooltipgroup.3qt) and the Qt
version (3.3.8).