File: qtabbar.html

package info (click to toggle)
python-qt4 4.0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,632 kB
  • ctags: 2,639
  • sloc: python: 29,409; sh: 5,646; cpp: 3,168; xml: 149; makefile: 109
file content (139 lines) | stat: -rw-r--r-- 24,578 bytes parent folder | download
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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QTabBar Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QTabBar Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QTabBar class provides a tab bar, e.g. for use in tabbed dialogs. <a href="#details">More...</a></p>
<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qtabbar.html#Shape-enum">Shape</a></b> { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, ..., TriangularEast }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtabbar.html#QTabBar">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />int <b><a href="qtabbar.html#addTab">addTab</a></b> (<i>self</i>, QString&#160;<i>text</i>)</li><li><div class="fn" />int <b><a href="qtabbar.html#addTab-2">addTab</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#changeEvent">changeEvent</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" />int <b><a href="qtabbar.html#count">count</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtabbar.html#currentIndex">currentIndex</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtabbar.html#drawBase">drawBase</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qtabbar.html#event">event</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" />QSize <b><a href="qtabbar.html#iconSize">iconSize</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtabbar.html#insertTab">insertTab</a></b> (<i>self</i>, int&#160;<i>index</i>, QString&#160;<i>text</i>)</li><li><div class="fn" />int <b><a href="qtabbar.html#insertTab-2">insertTab</a></b> (<i>self</i>, int&#160;<i>index</i>, QIcon&#160;<i>icon</i>, QString&#160;<i>text</i>)</li><li><div class="fn" />bool <b><a href="qtabbar.html#isTabEnabled">isTabEnabled</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#keyPressEvent">keyPressEvent</a></b> (<i>self</i>, QKeyEvent)</li><li><div class="fn" />QSize <b><a href="qtabbar.html#minimumSizeHint">minimumSizeHint</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QMouseEvent)</li><li><div class="fn" /><b><a href="qtabbar.html#mousePressEvent">mousePressEvent</a></b> (<i>self</i>, QMouseEvent)</li><li><div class="fn" /><b><a href="qtabbar.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QMouseEvent)</li><li><div class="fn" /><b><a href="qtabbar.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent)</li><li><div class="fn" /><b><a href="qtabbar.html#removeTab">removeTab</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#resizeEvent">resizeEvent</a></b> (<i>self</i>, QResizeEvent)</li><li><div class="fn" /><b><a href="qtabbar.html#setCurrentIndex">setCurrentIndex</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setDrawBase">setDrawBase</a></b> (<i>self</i>, bool&#160;<i>drawTheBase</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setIconSize">setIconSize</a></b> (<i>self</i>, QSize&#160;<i>size</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setShape">setShape</a></b> (<i>self</i>, Shape&#160;<i>shape</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabData">setTabData</a></b> (<i>self</i>, int&#160;<i>index</i>, QVariant&#160;<i>data</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabEnabled">setTabEnabled</a></b> (<i>self</i>, int&#160;<i>index</i>, bool)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabIcon">setTabIcon</a></b> (<i>self</i>, int&#160;<i>index</i>, QIcon&#160;<i>icon</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabText">setTabText</a></b> (<i>self</i>, int&#160;<i>index</i>, QString&#160;<i>text</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabTextColor">setTabTextColor</a></b> (<i>self</i>, int&#160;<i>index</i>, QColor&#160;<i>color</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabToolTip">setTabToolTip</a></b> (<i>self</i>, int&#160;<i>index</i>, QString&#160;<i>tip</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#setTabWhatsThis">setTabWhatsThis</a></b> (<i>self</i>, int&#160;<i>index</i>, QString&#160;<i>text</i>)</li><li><div class="fn" />Shape <b><a href="qtabbar.html#shape">shape</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#showEvent">showEvent</a></b> (<i>self</i>, QShowEvent)</li><li><div class="fn" />QSize <b><a href="qtabbar.html#sizeHint">sizeHint</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qtabbar.html#tabData">tabData</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />QIcon <b><a href="qtabbar.html#tabIcon">tabIcon</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#tabInserted">tabInserted</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#tabLayoutChange">tabLayoutChange</a></b> (<i>self</i>)</li><li><div class="fn" />QRect <b><a href="qtabbar.html#tabRect">tabRect</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" /><b><a href="qtabbar.html#tabRemoved">tabRemoved</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />QSize <b><a href="qtabbar.html#tabSizeHint">tabSizeHint</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />QString <b><a href="qtabbar.html#tabText">tabText</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />QColor <b><a href="qtabbar.html#tabTextColor">tabTextColor</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />QString <b><a href="qtabbar.html#tabToolTip">tabToolTip</a></b> (<i>self</i>, int&#160;<i>index</i>)</li><li><div class="fn" />QString <b><a href="qtabbar.html#tabWhatsThis">tabWhatsThis</a></b> (<i>self</i>, int&#160;<i>index</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qtabbar.html#currentChanged">currentChanged</a></b> (int)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QTabBar class provides a tab bar, e.g. for use in tabbed dialogs.</p>
<p>QTabBar is straightforward to use; it draws the tabs using one of the predefined <a href="qtabbar.html#Shape-enum">shapes</a>, and emits a signal when a tab is selected. It can be subclassed to tailor the look and feel. Qt also provides a ready-made <a href="qtabwidget.html">QTabWidget</a>.</p>
<p>Each tab has a <a href="qtabbar.html#tabText">tabText</a>(), an optional <a href="qtabbar.html#tabIcon">tabIcon</a>(), an optional <a href="qtabbar.html#tabToolTip">tabToolTip</a>(), optional <a href="qtabbar.html#tabWhatsThis">tabWhatsThis</a>() and optional <a href="qtabbar.html#tabData">tabData</a>(). The tabs's attributes can be changed with <a href="qtabbar.html#setTabText">setTabText</a>(), <a href="qtabbar.html#setTabIcon">setTabIcon</a>(), <a href="qtabbar.html#setTabToolTip">setTabToolTip</a>(), setTabWhatsThis and <a href="qtabbar.html#setTabData">setTabData</a>(). Each tabs can be enabled or disabled individually with <a href="qtabbar.html#setTabEnabled">setTabEnabled</a>().</p>
<p>Each tab can display text in a distinct color. The current text color for a tab can be found with the <a href="qtabbar.html#tabTextColor">tabTextColor</a>() function. Set the text color for a particular tab with <a href="qtabbar.html#setTabTextColor">setTabTextColor</a>().</p>
<p>Tabs are added using <a href="qtabbar.html#addTab">addTab</a>(), or inserted at particular positions using <a href="qtabbar.html#insertTab">insertTab</a>(). The total number of tabs is given by <a href="qtabbar.html#count-prop">count</a>(). Tabs can be removed from the tab bar with <a href="qtabbar.html#removeTab">removeTab</a>(). Combining <a href="qtabbar.html#removeTab">removeTab</a>() and <a href="qtabbar.html#insertTab">insertTab</a>() allows you to move tabs to different positions.</p>
<p>The <a href="qtabbar.html#shape-prop">shape</a> property defines the tabs' appearance. The choice of shape is a matter of taste, although tab dialogs (for preferences and similar) invariably use <a href="qtabbar.html#Shape-enum">RoundedNorth</a>. Tab controls in windows other than dialogs almost always use either <a href="qtabbar.html#Shape-enum">RoundedSouth</a> or <a href="qtabbar.html#Shape-enum">TriangularSouth</a>. Many spreadsheets and other tab controls in which all the pages are essentially similar use <a href="qtabbar.html#Shape-enum">TriangularSouth</a>, whereas <a href="qtabbar.html#Shape-enum">RoundedSouth</a> is used mostly when the pages are different (e.g. a multi-page tool palette). The default in QTabBar is <a href="qtabbar.html#Shape-enum">RoundedNorth</a>.</p>
<p>The most important part of QTabBar's API is the <a href="qtabbar.html#currentChanged">currentChanged</a>() signal. This is emitted whenever the current tab changes (even at startup, when the current tab changes from 'none'). There is also a slot, <a href="qtabbar.html#currentIndex-prop">setCurrentIndex</a>(), which can be used to select a tab programmatically. The function <a href="qtabbar.html#currentIndex-prop">currentIndex</a>() returns the index of the current tab, <a href="qtabbar.html#count-prop">count</a> holds the number of tabs.</p>
<p>QTabBar creates automatic mnemonic keys in the manner of <a href="qabstractbutton.html">QAbstractButton</a>; e.g. if a tab's label is "&amp;Graphics", Alt+G becomes a shortcut key for switching to that tab.</p>
<p>The following virtual functions may need to be reimplemented in order to tailor the look and feel or store extra data with each tab:</p>
<ul>
<li><a href="qtabbar.html#tabSizeHint">tabSizeHint</a>() calcuates the size of a tab.</li>
<li><a href="qtabbar.html#tabInserted">tabInserted</a>() notifies that a new tab was added.</li>
<li><a href="qtabbar.html#tabRemoved">tabRemoved</a>() notifies that a tab was removed.</li>
<li><a href="qtabbar.html#tabLayoutChange">tabLayoutChange</a>() notifies that the tabs have been re-laid out.</li>
<li><a href="qwidget.html#paintEvent">paintEvent</a>() paints all tabs.</li>
</ul>
<p>For subclasses, you might also need the <a href="qtabbar.html#tabRect">tabRect</a>() functions which returns the visual geometry of a single tab.</p>
<table align="center" border="0" cellpadding="2" cellspacing="1" width="100%">
<tr bgcolor="#F0F0F0" valign="top">
<td><img alt="Screenshot of a Plastique style tab bar" src="images/plastique-tabbar.png" /></td>
<td>A tab bar shown in the Plastique widget style.</td>
</tr>
<tr bgcolor="#E0E0E0" valign="top">
<td><img alt="Screenshot of a truncated Plastique tab bar" src="images/plastique-tabbar-truncated.png" /></td>
<td>A truncated tab bar shown in the Plastique widget style.</td>
</tr>
</table>
<br />
<br />
<p>See also <a href="qtabwidget.html">QTabWidget</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Shape-enum" />QTabBar.Shape</h3><p>This enum type lists the built-in shapes supported by <a href="qtabbar.html">QTabBar</a>. Treat these as hints as some styles may not render some of the shapes. However, position should be honored.</p>
<table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr>
<th width="25%">Constant</th>
<th width="15%">Value</th>
<th width="60%">Description</th>
</tr>
<tr>
<td valign="top"><tt>QTabBar.RoundedNorth</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
<td valign="top">The normal rounded look above the pages</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.RoundedSouth</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
<td valign="top">The normal rounded look below the pages</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.RoundedWest</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
<td valign="top">The normal rounded look on the left side of the pages</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.RoundedEast</tt></td>
<td align="center" valign="top"><tt>3</tt></td>
<td valign="top">The normal rounded look on the right side the pages</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.TriangularNorth</tt></td>
<td align="center" valign="top"><tt>4</tt></td>
<td valign="top">Triangular tabs above the pages.</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.TriangularSouth</tt></td>
<td align="center" valign="top"><tt>5</tt></td>
<td valign="top">Triangular tabs similar to those used in the Excel spreadsheet, for example</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.TriangularWest</tt></td>
<td align="center" valign="top"><tt>6</tt></td>
<td valign="top">Triangular tabs on the left of the pages.</td>
</tr>
<tr>
<td valign="top"><tt>QTabBar.TriangularEast</tt></td>
<td align="center" valign="top"><tt>7</tt></td>
<td valign="top">Triangular tabs on the right of the pages.</td>
</tr>
</table>
<br />
<br />
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTabBar" />QTabBar.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Creates a new tab bar with the given <i>parent</i>.</p>
<h3 class="fn"><a name="addTab" />int QTabBar.addTab (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>Adds a new tab with text <i>text</i>. Returns the new tab's index.</p>
<h3 class="fn"><a name="addTab-2" />int QTabBar.addTab (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>This is an overloaded member function, provided for convenience.</p>
<p>Adds a new tab with icon <i>icon</i> and text <i>text</i>. Returns the new tab's index.</p>
<h3 class="fn"><a name="changeEvent" />QTabBar.changeEvent (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><h3 class="fn"><a name="count" />int QTabBar.count (<i>self</i>)</h3><h3 class="fn"><a name="currentIndex" />int QTabBar.currentIndex (<i>self</i>)</h3><h3 class="fn"><a name="drawBase" />bool QTabBar.drawBase (<i>self</i>)</h3><h3 class="fn"><a name="event" />bool QTabBar.event (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><h3 class="fn"><a name="iconSize" /><a href="qsize.html">QSize</a> QTabBar.iconSize (<i>self</i>)</h3><h3 class="fn"><a name="insertTab" />int QTabBar.insertTab (<i>self</i>, int&#160;<i>index</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>Inserts a new tab with text <i>text</i> at position <i>index</i>. If <i>index</i> is out of range, the new tab is appened. Returns the new tab's index.</p>
<h3 class="fn"><a name="insertTab-2" />int QTabBar.insertTab (<i>self</i>, int&#160;<i>index</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>This is an overloaded member function, provided for convenience.</p>
<p>Inserts a new tab with icon <i>icon</i> and text <i>text</i> at position <i>index</i>. If <i>index</i> is out of range, the new tab is appended. Returns the new tab's index.</p>
<p>If the <a href="qtabbar.html">QTabBar</a> was empty before this function is called, the inserted tab becomes the current tab.</p>
<p>Inserting a new tab at an index less than or equal to the current index will increment the current index, but keep the current tab.</p>
<h3 class="fn"><a name="isTabEnabled" />bool QTabBar.isTabEnabled (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns true if the tab at position <i>index</i> is enabled; otherwise returns false.</p>
<h3 class="fn"><a name="keyPressEvent" />QTabBar.keyPressEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>)</h3><h3 class="fn"><a name="minimumSizeHint" /><a href="qsize.html">QSize</a> QTabBar.minimumSizeHint (<i>self</i>)</h3><h3 class="fn"><a name="mouseMoveEvent" />QTabBar.mouseMoveEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>)</h3><h3 class="fn"><a name="mousePressEvent" />QTabBar.mousePressEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>)</h3><h3 class="fn"><a name="mouseReleaseEvent" />QTabBar.mouseReleaseEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>)</h3><h3 class="fn"><a name="paintEvent" />QTabBar.paintEvent (<i>self</i>, <a href="qpaintevent.html">QPaintEvent</a>)</h3><h3 class="fn"><a name="removeTab" />QTabBar.removeTab (<i>self</i>, int&#160;<i>index</i>)</h3><p>Removes the tab at position <i>index</i>.</p>
<h3 class="fn"><a name="resizeEvent" />QTabBar.resizeEvent (<i>self</i>, <a href="qresizeevent.html">QResizeEvent</a>)</h3><h3 class="fn"><a name="setCurrentIndex" />QTabBar.setCurrentIndex (<i>self</i>, int&#160;<i>index</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setCurrentIndex(int)</tt>.</p><h3 class="fn"><a name="setDrawBase" />QTabBar.setDrawBase (<i>self</i>, bool&#160;<i>drawTheBase</i>)</h3><h3 class="fn"><a name="setIconSize" />QTabBar.setIconSize (<i>self</i>, <a href="qsize.html">QSize</a>&#160;<i>size</i>)</h3><h3 class="fn"><a name="setShape" />QTabBar.setShape (<i>self</i>, <a href="qtabbar.html#Shape-enum">Shape</a>&#160;<i>shape</i>)</h3><h3 class="fn"><a name="setTabData" />QTabBar.setTabData (<i>self</i>, int&#160;<i>index</i>, <a href="qvariant.html">QVariant</a>&#160;<i>data</i>)</h3><p>Sets the data of the tab at position <i>index</i> to <i>data</i>.</p>
<p>See also <a href="qtabbar.html#tabData">tabData</a>().</p>
<h3 class="fn"><a name="setTabEnabled" />QTabBar.setTabEnabled (<i>self</i>, int&#160;<i>index</i>, bool)</h3><p>If <i>enabled</i> is true then the tab at position <i>index</i> is enabled; otherwise the item at position <i>index</i> is disabled.</p>
<p>See also <a href="qtabbar.html#isTabEnabled">isTabEnabled</a>().</p>
<h3 class="fn"><a name="setTabIcon" />QTabBar.setTabIcon (<i>self</i>, int&#160;<i>index</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>)</h3><p>Sets the icon of the tab at position <i>index</i> to <i>icon</i>.</p>
<p>See also <a href="qtabbar.html#tabIcon">tabIcon</a>().</p>
<h3 class="fn"><a name="setTabText" />QTabBar.setTabText (<i>self</i>, int&#160;<i>index</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>Sets the text of the tab at position <i>index</i> to <i>text</i>.</p>
<p>See also <a href="qtabbar.html#tabText">tabText</a>().</p>
<h3 class="fn"><a name="setTabTextColor" />QTabBar.setTabTextColor (<i>self</i>, int&#160;<i>index</i>, <a href="qcolor.html">QColor</a>&#160;<i>color</i>)</h3><p>Sets the color of the text in the tab with the given <i>index</i> to the specified <i>color</i>.</p>
<p>If an invalid color is specified, the tab will use the <a href="qtabbar.html">QTabBar</a> foreground role instead.</p>
<p>See also <a href="qtabbar.html#tabTextColor">tabTextColor</a>().</p>
<h3 class="fn"><a name="setTabToolTip" />QTabBar.setTabToolTip (<i>self</i>, int&#160;<i>index</i>, <a href="qstring.html">QString</a>&#160;<i>tip</i>)</h3><p>Sets the tool tip of the tab at position <i>index</i> to <i>tip</i>.</p>
<p>See also <a href="qtabbar.html#tabToolTip">tabToolTip</a>().</p>
<h3 class="fn"><a name="setTabWhatsThis" />QTabBar.setTabWhatsThis (<i>self</i>, int&#160;<i>index</i>, <a href="qstring.html">QString</a>&#160;<i>text</i>)</h3><p>Sets the What's This help text of the tab at position <i>index</i> to <i>text</i>.</p>
<p>This function was introduced in Qt 4.1.</p>
<p>See also <a href="qtabbar.html#tabWhatsThis">tabWhatsThis</a>().</p>
<h3 class="fn"><a name="shape" /><a href="qtabbar.html#Shape-enum">Shape</a> QTabBar.shape (<i>self</i>)</h3><h3 class="fn"><a name="showEvent" />QTabBar.showEvent (<i>self</i>, <a href="qshowevent.html">QShowEvent</a>)</h3><h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QTabBar.sizeHint (<i>self</i>)</h3><h3 class="fn"><a name="tabData" /><a href="qvariant.html">QVariant</a> QTabBar.tabData (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the datad of the tab at position <i>index</i>, or a null variant if <i>index</i> is out of range.</p>
<p>See also <a href="qtabbar.html#setTabData">setTabData</a>().</p>
<h3 class="fn"><a name="tabIcon" /><a href="qicon.html">QIcon</a> QTabBar.tabIcon (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the icon of the tab at position <i>index</i>, or a null icon if <i>index</i> is out of range.</p>
<p>See also <a href="qtabbar.html#setTabIcon">setTabIcon</a>().</p>
<h3 class="fn"><a name="tabInserted" />QTabBar.tabInserted (<i>self</i>, int&#160;<i>index</i>)</h3><p>This virtual handler is called after a new tab was added or inserted at position <i>index</i>.</p>
<p>See also <a href="qtabbar.html#tabRemoved">tabRemoved</a>().</p>
<h3 class="fn"><a name="tabLayoutChange" />QTabBar.tabLayoutChange (<i>self</i>)</h3><p>This virtual handler is called whenever the tab layout changes.</p>
<p>See also <a href="qtabbar.html#tabRect">tabRect</a>().</p>
<h3 class="fn"><a name="tabRect" /><a href="qrect.html">QRect</a> QTabBar.tabRect (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the visual rectangle of the of the tab at position <i>index</i>, or a null rectangle if <i>index</i> is out of range.</p>
<h3 class="fn"><a name="tabRemoved" />QTabBar.tabRemoved (<i>self</i>, int&#160;<i>index</i>)</h3><p>This virtual handler is called after a tab was removed from position <i>index</i>.</p>
<p>See also <a href="qtabbar.html#tabInserted">tabInserted</a>().</p>
<h3 class="fn"><a name="tabSizeHint" /><a href="qsize.html">QSize</a> QTabBar.tabSizeHint (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the size hint for the tab at position <i>index</i>.</p>
<h3 class="fn"><a name="tabText" /><a href="qstring.html">QString</a> QTabBar.tabText (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the text of the tab at position <i>index</i>, or an empty string if <i>index</i> is out of range.</p>
<p>See also <a href="qtabbar.html#setTabText">setTabText</a>().</p>
<h3 class="fn"><a name="tabTextColor" /><a href="qcolor.html">QColor</a> QTabBar.tabTextColor (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the text color of the tab with the given <i>index</i>, or a invalid color if <i>index</i> is out of range.</p>
<p>See also <a href="qtabbar.html#setTabTextColor">setTabTextColor</a>().</p>
<h3 class="fn"><a name="tabToolTip" /><a href="qstring.html">QString</a> QTabBar.tabToolTip (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the tool tip of the tab at position <i>index</i>, or an empty string if <i>index</i> is out of range.</p>
<p>See also <a href="qtabbar.html#setTabToolTip">setTabToolTip</a>().</p>
<h3 class="fn"><a name="tabWhatsThis" /><a href="qstring.html">QString</a> QTabBar.tabWhatsThis (<i>self</i>, int&#160;<i>index</i>)</h3><p>Returns the What's This help text of the tab at position <i>index</i>, or an empty string if <i>index</i> is out of range.</p>
<p>This function was introduced in Qt 4.1.</p>
<p>See also <a href="qtabbar.html#setTabWhatsThis">setTabWhatsThis</a>().</p>
<hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="currentChanged" />void currentChanged (int)</h3><p>This signal is emitted when the tab bar's current tab changes. The new current has the given <i>index</i>.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td width="25%">PyQt&#160;4.0.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.trolltech.com">Trolltech&#160;AS</a> 2006</td><td align="right" width="25%">Qt&#160;4.1.4</td></tr></table></div></address></body></html>