1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/kernel/qtooltip.cpp -->
7
<title>Qt 4.0: Qt 3 Support Members for QToolTip</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QToolTip</h1>
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
22
<p><ul><li><a href="qtooltip.html">QToolTip class reference</a></li></ul></p>
23
<h3>Static Public Members</h3>
25
<li><div class="fn"/>void <b><a href="qtooltip-qt3.html#add">add</a></b> ( QWidget * <i>widget</i>, const QString & <i>text</i> )</li>
26
<li><div class="fn"/>void <b><a href="qtooltip-qt3.html#add-2">add</a></b> ( QWidget * <i>widget</i>, const QRect & <i>rect</i>, const QString & <i>text</i> )</li>
27
<li><div class="fn"/>void <b><a href="qtooltip-qt3.html#remove">remove</a></b> ( QWidget * <i>widget</i> )</li>
30
<h2>Member Function Documentation</h2>
31
<h3 class="fn"><a name="add"></a>void QToolTip::add ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qstring.html">QString</a> & <i>text</i> ) <tt> [static]</tt></h3>
32
<p>Use <a href="qwidget.html#toolTip-prop">QWidget::setToolTip</a>() instead.</p>
33
<p>For example, if you have code like</p>
34
<pre><font color="#404040"> tip->add(widget, text);</font></pre>
35
<p>you can rewrite it as</p>
36
<pre> widget->setToolTip(text);</pre>
37
<h3 class="fn"><a name="add-2"></a>void QToolTip::add ( <a href="qwidget.html">QWidget</a> * <i>widget</i>, const <a href="qrect.html">QRect</a> & <i>rect</i>, const <a href="qstring.html">QString</a> & <i>text</i> ) <tt> [static]</tt></h3>
38
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
39
<p>Use <a href="qwidget.html#toolTip-prop">QWidget::setToolTip</a>() instead.</p>
40
<p>For example, if you have code like</p>
41
<pre><font color="#404040"> tip->add(widget, rect, text);</font></pre>
42
<p>you can rewrite it as</p>
43
<pre> widget->setToolTip(text);</pre>
44
<h3 class="fn"><a name="remove"></a>void QToolTip::remove ( <a href="qwidget.html">QWidget</a> * <i>widget</i> ) <tt> [static]</tt></h3>
45
<p>Use <a href="qwidget.html#toolTip-prop">QWidget::setToolTip</a>() instead.</p>
46
<p>For example, if you have code like</p>
47
<pre><font color="#404040"> tip->remove(widget);</font></pre>
48
<p>you can rewrite it as</p>
49
<pre> widget->setToolTip(QString());</pre>
50
<p /><address><hr /><div align="center">
51
<table width="100%" cellspacing="0" border="0"><tr class="address">
52
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
53
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
54
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
55
</tr></table></div></address></body>