1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/widgets/qtabbar.cpp:57 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QTab Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QTab Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QTab class provides the structures in a QTabBar.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qtabbar-h.html">qtabbar.h</a>></tt>
|
---|
37 | <p>Inherits <a href="qt.html">Qt</a>.
|
---|
38 | <p><a href="qtab-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn><a href="#QTab"><b>QTab</b></a> ()</li>
|
---|
42 | <li class=fn>virtual <a href="#~QTab"><b>~QTab</b></a> ()</li>
|
---|
43 | <li class=fn><a href="#QTab-2"><b>QTab</b></a> ( const QString & text )</li>
|
---|
44 | <li class=fn><a href="#QTab-3"><b>QTab</b></a> ( const QIconSet & icon, const QString & text = QString::null )</li>
|
---|
45 | <li class=fn>void <a href="#setText"><b>setText</b></a> ( const QString & text )</li>
|
---|
46 | <li class=fn>QString <a href="#text"><b>text</b></a> () const</li>
|
---|
47 | <li class=fn>void <a href="#setIconSet"><b>setIconSet</b></a> ( const QIconSet & icon )</li>
|
---|
48 | <li class=fn>QIconSet * <a href="#iconSet"><b>iconSet</b></a> () const</li>
|
---|
49 | <li class=fn>void <a href="#setRect"><b>setRect</b></a> ( const QRect & rect )</li>
|
---|
50 | <li class=fn>QRect <a href="#rect"><b>rect</b></a> () const</li>
|
---|
51 | <li class=fn>void <a href="#setEnabled"><b>setEnabled</b></a> ( bool enable )</li>
|
---|
52 | <li class=fn>bool <a href="#isEnabled"><b>isEnabled</b></a> () const</li>
|
---|
53 | <li class=fn>void <a href="#setIdentifier"><b>setIdentifier</b></a> ( int i )</li>
|
---|
54 | <li class=fn>int <a href="#identifier"><b>identifier</b></a> () const</li>
|
---|
55 | </ul>
|
---|
56 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
57 |
|
---|
58 |
|
---|
59 | The QTab class provides the structures in a <a href="qtabbar.html">QTabBar</a>.
|
---|
60 | <p>
|
---|
61 | <p> This class is used for custom QTabBar tab headings.
|
---|
62 | <p> <p>See also <a href="qtabbar.html">QTabBar</a> and <a href="advanced.html">Advanced Widgets</a>.
|
---|
63 |
|
---|
64 | <hr><h2>Member Function Documentation</h2>
|
---|
65 | <h3 class=fn><a name="QTab"></a>QTab::QTab ()
|
---|
66 | </h3>
|
---|
67 | Constructs an empty tab. All fields are set to empty.
|
---|
68 |
|
---|
69 | <h3 class=fn><a name="QTab-2"></a>QTab::QTab ( const <a href="qstring.html">QString</a> & text )
|
---|
70 | </h3>
|
---|
71 | Constructs a tab with the text <em>text</em>.
|
---|
72 |
|
---|
73 | <h3 class=fn><a name="QTab-3"></a>QTab::QTab ( const <a href="qiconset.html">QIconSet</a> & icon, const <a href="qstring.html">QString</a> & text = QString::null )
|
---|
74 | </h3>
|
---|
75 | Constructs a tab with an <em>icon</em> and the text, <em>text</em>.
|
---|
76 |
|
---|
77 | <h3 class=fn><a name="~QTab"></a>QTab::~QTab ()<tt> [virtual]</tt>
|
---|
78 | </h3>
|
---|
79 | Destroys the tab and frees up all allocated resources.
|
---|
80 |
|
---|
81 | <h3 class=fn><a href="qiconset.html">QIconSet</a> * <a name="iconSet"></a>QTab::iconSet () const
|
---|
82 | </h3>
|
---|
83 |
|
---|
84 | <p> Return the <a href="qiconset.html">QIconSet</a> of the QTab.
|
---|
85 |
|
---|
86 | <h3 class=fn>int <a name="identifier"></a>QTab::identifier () const
|
---|
87 | </h3>
|
---|
88 |
|
---|
89 | <p> Return the QTab's identifier.
|
---|
90 |
|
---|
91 | <h3 class=fn>bool <a name="isEnabled"></a>QTab::isEnabled () const
|
---|
92 | </h3>
|
---|
93 |
|
---|
94 | <p> Returns TRUE if the QTab is enabled; otherwise returns FALSE.
|
---|
95 |
|
---|
96 | <h3 class=fn><a href="qrect.html">QRect</a> <a name="rect"></a>QTab::rect () const
|
---|
97 | </h3>
|
---|
98 |
|
---|
99 | <p> Return the <a href="qrect.html">QRect</a> for the QTab.
|
---|
100 |
|
---|
101 | <h3 class=fn>void <a name="setEnabled"></a>QTab::setEnabled ( bool enable )
|
---|
102 | </h3>
|
---|
103 |
|
---|
104 | <p> If <em>enable</em> is TRUE enable the QTab, otherwise disable it.
|
---|
105 |
|
---|
106 | <h3 class=fn>void <a name="setIconSet"></a>QTab::setIconSet ( const <a href="qiconset.html">QIconSet</a> & icon )
|
---|
107 | </h3>
|
---|
108 | Sets the tab's iconset to <em>icon</em>
|
---|
109 |
|
---|
110 | <h3 class=fn>void <a name="setIdentifier"></a>QTab::setIdentifier ( int i )
|
---|
111 | </h3>
|
---|
112 |
|
---|
113 | <p> Set the identifier for the QTab to <em>i</em>. Each QTab's identifier
|
---|
114 | within a <a href="qtabbar.html">QTabBar</a> must be unique.
|
---|
115 |
|
---|
116 | <h3 class=fn>void <a name="setRect"></a>QTab::setRect ( const <a href="qrect.html">QRect</a> & rect )
|
---|
117 | </h3>
|
---|
118 |
|
---|
119 | <p> Set the QTab <a href="qrect.html">QRect</a> to <em>rect</em>.
|
---|
120 |
|
---|
121 | <h3 class=fn>void <a name="setText"></a>QTab::setText ( const <a href="qstring.html">QString</a> & text )
|
---|
122 | </h3>
|
---|
123 | Sets the text of the tab to <em>text</em>.
|
---|
124 |
|
---|
125 | <h3 class=fn><a href="qstring.html">QString</a> <a name="text"></a>QTab::text () const
|
---|
126 | </h3>
|
---|
127 |
|
---|
128 | <p> Returns the text of the QTab label.
|
---|
129 |
|
---|
130 | <!-- eof -->
|
---|
131 | <hr><p>
|
---|
132 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
133 | Copyright © 1995-2007
|
---|
134 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
135 | <table width=100% cellspacing=0 border=0><tr>
|
---|
136 | <td>Copyright © 2007
|
---|
137 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
138 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
139 | </table></div></address></body>
|
---|
140 | </html>
|
---|