~ubuntu-branches/ubuntu/precise/python-qt4/precise-proposed

« back to all changes in this revision

Viewing changes to doc/html/qstyleoptiontab.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Jonathan Riddell
  • Date: 2010-11-08 16:13:33 UTC
  • mfrom: (1.5.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101108161333-0nec4wu0nz3wpf9r
Tags: 4.8.1-0ubuntu1
[ Jonathan Riddell ]
* New upstream release
* Build against python-sip-dev 4.11.2
* Remove kubuntu_02_fix-scpk-and-flag-issue.diff merged upstream
* Install __init__.py into /usr/lib/python3.2/dist-packages/PyQt4,
  fixes Python 3 support
* Add QtDeclarative to python-qt4
* Add kubuntu_03_uiparser.diff from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
td.postheader { font-family: sans-serif }
7
7
tr.address { font-family: sans-serif }
8
8
body { background: #ffffff; color: black; }
9
 
</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">QStyleOptionTab Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QStyleOptionTab class is used to describe the parameters for drawing a tab bar. <a href="#details">More...</a></p>
10
 
<p>Inherits <a href="qstyleoption.html">QStyleOption</a>.</p><p>Inherited by <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidget</a></b> { NoCornerWidgets, LeftCornerWidget, RightCornerWidget }</li><li><div class="fn" />class <b><a href="qstyleoptiontab-cornerwidgets.html">CornerWidgets</a></b></li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#SelectedPosition-enum">SelectedPosition</a></b> { NotAdjacent, NextIsSelected, PreviousIsSelected }</li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#TabPosition-enum">TabPosition</a></b> { Beginning, Middle, End, OnlyOneTab }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qstyleoptiontab.html#QStyleOptionTab">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstyleoptiontab.html#QStyleOptionTab-2">__init__</a></b> (<i>self</i>, QStyleOptionTab)</li></ul><h3>Members</h3><ul><li><div class="fn" />CornerWidgets <b><a href="qstyleoptiontab.html#cornerWidgets-var">cornerWidgets</a></b></li><li><div class="fn" />QIcon <b><a href="qstyleoptiontab.html#icon-var">icon</a></b></li><li><div class="fn" />TabPosition <b><a href="qstyleoptiontab.html#position-var">position</a></b></li><li><div class="fn" />int <b><a href="qstyleoptiontab.html#row-var">row</a></b></li><li><div class="fn" />SelectedPosition <b><a href="qstyleoptiontab.html#selectedPosition-var">selectedPosition</a></b></li><li><div class="fn" />QTabBar.Shape <b><a href="qstyleoptiontab.html#shape-var">shape</a></b></li><li><div class="fn" />QString <b><a href="qstyleoptiontab.html#text-var">text</a></b></li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.</p>
11
 
<p>The QStyleOptionTab class is used for drawing several built-in Qt widgets including <a href="qtabbar.html">QTabBar</a> and the panel for <a href="qtabwidget.html">QTabWidget</a>. Note that to describe the parameters necessary for drawing a frame in Qt 4.1 or above, you must use the <a href="qstyleoptionframev2.html">QStyleOptionFrameV2</a> subclass.</p>
12
 
<p>An instance of the QStyleOptiontabV2 class has <a href="qstyleoption.html#type-varx">type</a> <a href="qstyleoption.html#OptionType-enum">SO_Tab</a> and <a href="qstyleoption.html#version-var">version</a> 1. The type is used internally by <a href="qstyleoption.html">QStyleOption</a>, its subclasses, and <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>() to determine the type of style option. In general you do not need to worry about this unless you want to create your own <a href="qstyleoption.html">QStyleOption</a> subclass and your own styles. The version is used by <a href="qstyleoption.html">QStyleOption</a> subclasses to implement extensions without breaking compatibility. If you use <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>(), you normally do not need to check it.</p>
13
 
<p>If you create your own <a href="qstyle.html">QStyle</a> subclass, you should handle both QStyleOptionTab and <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a>.</p>
14
 
<p>For an example demonstrating how style options can be used, see the <a href="widgets-styles.html">Styles</a> example.</p>
15
 
<p>See also <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a> and <a href="qstyleoption.html">QStyleOption</a>.</p>
 
9
</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">QStyleOptionTab Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QStyleOptionTab class is used to describe the parameters for
 
10
drawing a tab bar. <a href="#details">More...</a></p>
 
11
 
 
12
<p>Inherits <a href="qstyleoption.html">QStyleOption</a>.</p><p>Inherited by <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidget</a></b> { NoCornerWidgets, LeftCornerWidget, RightCornerWidget }</li><li><div class="fn" />class <b><a href="qstyleoptiontab-cornerwidgets.html">CornerWidgets</a></b></li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#SelectedPosition-enum">SelectedPosition</a></b> { NotAdjacent, NextIsSelected, PreviousIsSelected }</li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</li><li><div class="fn" />enum <b><a href="qstyleoptiontab.html#TabPosition-enum">TabPosition</a></b> { Beginning, Middle, End, OnlyOneTab }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qstyleoptiontab.html#QStyleOptionTab">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstyleoptiontab.html#QStyleOptionTab-2">__init__</a></b> (<i>self</i>, QStyleOptionTab)</li></ul><h3>Members</h3><ul><li><div class="fn" />CornerWidgets <b><a href="qstyleoptiontab.html#cornerWidgets-var">cornerWidgets</a></b></li><li><div class="fn" />QIcon <b><a href="qstyleoptiontab.html#icon-var">icon</a></b></li><li><div class="fn" />TabPosition <b><a href="qstyleoptiontab.html#position-var">position</a></b></li><li><div class="fn" />int <b><a href="qstyleoptiontab.html#row-var">row</a></b></li><li><div class="fn" />SelectedPosition <b><a href="qstyleoptiontab.html#selectedPosition-var">selectedPosition</a></b></li><li><div class="fn" />QTabBar.Shape <b><a href="qstyleoptiontab.html#shape-var">shape</a></b></li><li><div class="fn" />QString <b><a href="qstyleoptiontab.html#text-var">text</a></b></li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QStyleOptionTab class is used to describe the parameters for
 
13
drawing a tab bar.</p>
 
14
<p>The QStyleOptionTab class is used for drawing several built-in
 
15
Qt widgets including <a href="qtabbar.html">QTabBar</a> and the
 
16
panel for <a href="qtabwidget.html">QTabWidget</a>. Note that to
 
17
describe the parameters necessary for drawing a frame in Qt 4.1 or
 
18
above, you must use the <a href="qstyleoptionframev2.html">QStyleOptionFrameV2</a> subclass.</p>
 
19
<p>An instance of the QStyleOptiontabV2 class has <a href="qstyleoption.html#type-varx">type</a> <a href="qstyleoption.html#OptionType-enum">SO_Tab</a> and <a href="qstyleoption.html#version-var">version</a> 1. The type is used
 
20
internally by <a href="qstyleoption.html">QStyleOption</a>, its
 
21
subclasses, and <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>() to
 
22
determine the type of style option. In general you do not need to
 
23
worry about this unless you want to create your own <a href="qstyleoption.html">QStyleOption</a> subclass and your own styles.
 
24
The version is used by <a href="qstyleoption.html">QStyleOption</a>
 
25
subclasses to implement extensions without breaking compatibility.
 
26
If you use <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>(), you
 
27
normally do not need to check it.</p>
 
28
<p>If you create your own <a href="qstyle.html">QStyle</a>
 
29
subclass, you should handle both QStyleOptionTab and <a href="qstyleoptiontabv2.html">QStyleOptionTabV2</a>.</p>
 
30
<p>For an example demonstrating how style options can be used, see
 
31
the <a href="widgets-styles.html">Styles</a> example.</p>
16
32
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="CornerWidget-enum" />QStyleOptionTab.CornerWidget</h3><p>These flags indicate the corner widgets in a tab.</p>
17
 
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
18
 
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
19
 
<tr><td valign="top"><tt>QStyleOptionTab.NoCornerWidgets</tt></td><td align="center" valign="top"><tt>0x00</tt></td><td valign="top">There are no corner widgets</td></tr>
20
 
<tr><td valign="top"><tt>QStyleOptionTab.LeftCornerWidget</tt></td><td align="center" valign="top"><tt>0x01</tt></td><td valign="top">Left corner widget</td></tr>
21
 
<tr><td valign="top"><tt>QStyleOptionTab.RightCornerWidget</tt></td><td align="center" valign="top"><tt>0x02</tt></td><td valign="top">Right corner widget</td></tr>
22
 
</table></p>
23
 
<p>The CornerWidgets type is a typedef for <a href="qflags.html">QFlags</a>&lt;CornerWidget&gt;. It stores an OR combination of CornerWidget values.</p>
 
33
<table class="valuelist">
 
34
<tr class="odd">
 
35
<td />
 
36
</tr>
 
37
<tr>
 
38
<th class="tblConst">Constant</th>
 
39
<th class="tblval">Value</th>
 
40
<th class="tbldscr">Description</th>
 
41
</tr>
 
42
<tr>
 
43
<td class="topAlign"><tt>QStyleOptionTab.NoCornerWidgets</tt></td>
 
44
<td class=" topAlign"><tt>0x00</tt></td>
 
45
<td class="topAlign">There are no corner widgets</td>
 
46
</tr>
 
47
<tr>
 
48
<td class="topAlign">
 
49
<tt>QStyleOptionTab.LeftCornerWidget</tt></td>
 
50
<td class=" topAlign"><tt>0x01</tt></td>
 
51
<td class="topAlign">Left corner widget</td>
 
52
</tr>
 
53
<tr>
 
54
<td class="topAlign">
 
55
<tt>QStyleOptionTab.RightCornerWidget</tt></td>
 
56
<td class=" topAlign"><tt>0x02</tt></td>
 
57
<td class="topAlign">Right corner widget</td>
 
58
</tr>
 
59
</table>
 
60
<p>The CornerWidgets type is a typedef for <a href="qflags.html">QFlags</a>&lt;CornerWidget&gt;. It stores an OR
 
61
combination of CornerWidget values.</p>
24
62
<p>See also <a href="qstyleoptiontab.html#cornerWidgets-var">cornerWidgets</a>.</p>
25
 
<a name="//apple_ref/cpp/tag/QStyleOptionTab/SelectedPosition" />
26
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/NotAdjacent" />
27
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/NextIsSelected" />
28
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/PreviousIsSelected" />
29
 
<h3 class="fn"><a name="SelectedPosition-enum" />QStyleOptionTab.SelectedPosition</h3><p>This enum describes the position of the selected tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab.</p>
30
 
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
31
 
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
32
 
<tr><td valign="top"><tt>QStyleOptionTab.NotAdjacent</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The tab is not adjacent to a selected tab (or is the selected tab).</td></tr>
33
 
<tr><td valign="top"><tt>QStyleOptionTab.NextIsSelected</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The next tab (typically the tab on the right) is selected.</td></tr>
34
 
<tr><td valign="top"><tt>QStyleOptionTab.PreviousIsSelected</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The previous tab (typically the tab on the left) is selected.</td></tr>
35
 
</table></p>
 
63
 
 
64
 
 
65
<h3 class="fn"><a name="SelectedPosition-enum" />QStyleOptionTab.SelectedPosition</h3><p>This enum describes the position of the selected tab. Some
 
66
styles need to draw a tab differently depending on whether or not
 
67
it is adjacent to the selected tab.</p>
 
68
<table class="valuelist">
 
69
<tr class="odd">
 
70
<td />
 
71
</tr>
 
72
<tr>
 
73
<th class="tblConst">Constant</th>
 
74
<th class="tblval">Value</th>
 
75
<th class="tbldscr">Description</th>
 
76
</tr>
 
77
<tr>
 
78
<td class="topAlign"><tt>QStyleOptionTab.NotAdjacent</tt></td>
 
79
<td class=" topAlign"><tt>0</tt></td>
 
80
<td class="topAlign">The tab is not adjacent to a selected tab (or
 
81
is the selected tab).</td>
 
82
</tr>
 
83
<tr>
 
84
<td class="topAlign"><tt>QStyleOptionTab.NextIsSelected</tt></td>
 
85
<td class=" topAlign"><tt>1</tt></td>
 
86
<td class="topAlign">The next tab (typically the tab on the right)
 
87
is selected.</td>
 
88
</tr>
 
89
<tr>
 
90
<td class="topAlign">
 
91
<tt>QStyleOptionTab.PreviousIsSelected</tt></td>
 
92
<td class=" topAlign"><tt>2</tt></td>
 
93
<td class="topAlign">The previous tab (typically the tab on the
 
94
left) is selected.</td>
 
95
</tr>
 
96
</table>
36
97
<p>See also <a href="qstyleoptiontab.html#selectedPosition-var">selectedPosition</a>.</p>
37
 
<a name="//apple_ref/cpp/tag/QStyleOptionTab/StyleOptionType" />
38
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/Type" />
39
 
<h3 class="fn"><a name="StyleOptionType-enum" />QStyleOptionTab.StyleOptionType</h3><p>This enum is used to hold information about the type of the style option, and is defined for each <a href="qstyleoption.html">QStyleOption</a> subclass.</p>
40
 
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
41
 
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
42
 
<tr><td valign="top"><tt>QStyleOptionTab.Type</tt></td><td align="center" valign="top"><tt>SO_Tab</tt></td><td valign="top">The type of style option provided (<a href="qstyleoption.html#OptionType-enum">SO_Tab</a> for this class).</td></tr>
43
 
</table></p>
44
 
<p>The type is used internally by <a href="qstyleoption.html">QStyleOption</a>, its subclasses, and <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>() to determine the type of style option. In general you do not need to worry about this unless you want to create your own <a href="qstyleoption.html">QStyleOption</a> subclass and your own styles.</p>
 
98
 
 
99
 
 
100
<h3 class="fn"><a name="StyleOptionType-enum" />QStyleOptionTab.StyleOptionType</h3><p>This enum is used to hold information about the type of the
 
101
style option, and is defined for each <a href="qstyleoption.html">QStyleOption</a> subclass.</p>
 
102
<table class="valuelist">
 
103
<tr class="odd">
 
104
<td />
 
105
</tr>
 
106
<tr>
 
107
<th class="tblConst">Constant</th>
 
108
<th class="tblval">Value</th>
 
109
<th class="tbldscr">Description</th>
 
110
</tr>
 
111
<tr>
 
112
<td class="topAlign"><tt>QStyleOptionTab.Type</tt></td>
 
113
<td class=" topAlign"><tt>SO_Tab</tt></td>
 
114
<td class="topAlign">The type of style option provided (<a href="qstyleoption.html#OptionType-enum">SO_Tab</a> for this
 
115
class).</td>
 
116
</tr>
 
117
</table>
 
118
<p>The type is used internally by <a href="qstyleoption.html">QStyleOption</a>, its subclasses, and <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>() to
 
119
determine the type of style option. In general you do not need to
 
120
worry about this unless you want to create your own <a href="qstyleoption.html">QStyleOption</a> subclass and your own
 
121
styles.</p>
45
122
<p>See also <a href="qstyleoptiontab.html#StyleOptionVersion-enum">StyleOptionVersion</a>.</p>
46
 
<a name="//apple_ref/cpp/tag/QStyleOptionTab/StyleOptionVersion" />
47
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/Version" />
48
 
<h3 class="fn"><a name="StyleOptionVersion-enum" />QStyleOptionTab.StyleOptionVersion</h3><p>This enum is used to hold information about the version of the style option, and is defined for each <a href="qstyleoption.html">QStyleOption</a> subclass.</p>
49
 
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
50
 
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
51
 
<tr><td valign="top"><tt>QStyleOptionTab.Version</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">1</td></tr>
52
 
</table></p>
53
 
<p>The version is used by <a href="qstyleoption.html">QStyleOption</a> subclasses to implement extensions without breaking compatibility. If you use <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>(), you normally do not need to check it.</p>
 
123
 
 
124
 
 
125
<h3 class="fn"><a name="StyleOptionVersion-enum" />QStyleOptionTab.StyleOptionVersion</h3><p>This enum is used to hold information about the version of the
 
126
style option, and is defined for each <a href="qstyleoption.html">QStyleOption</a> subclass.</p>
 
127
<table class="valuelist">
 
128
<tr class="odd">
 
129
<td />
 
130
</tr>
 
131
<tr>
 
132
<th class="tblConst">Constant</th>
 
133
<th class="tblval">Value</th>
 
134
<th class="tbldscr">Description</th>
 
135
</tr>
 
136
<tr>
 
137
<td class="topAlign"><tt>QStyleOptionTab.Version</tt></td>
 
138
<td class=" topAlign"><tt>1</tt></td>
 
139
<td class="topAlign">1</td>
 
140
</tr>
 
141
</table>
 
142
<p>The version is used by <a href="qstyleoption.html">QStyleOption</a> subclasses to implement
 
143
extensions without breaking compatibility. If you use <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>(), you
 
144
normally do not need to check it.</p>
54
145
<p>See also <a href="qstyleoptiontab.html#StyleOptionType-enum">StyleOptionType</a>.</p>
55
 
<a name="//apple_ref/cpp/tag/QStyleOptionTab/TabPosition" />
56
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/Beginning" />
57
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/Middle" />
58
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/End" />
59
 
<a name="//apple_ref/cpp/econst/QStyleOptionTab/OnlyOneTab" />
 
146
 
 
147
 
60
148
<h3 class="fn"><a name="TabPosition-enum" />QStyleOptionTab.TabPosition</h3><p>This enum describes the position of the tab.</p>
61
 
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
62
 
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
63
 
<tr><td valign="top"><tt>QStyleOptionTab.Beginning</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The tab is the first tab in the tab bar.</td></tr>
64
 
<tr><td valign="top"><tt>QStyleOptionTab.Middle</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The tab is neither the first nor the last tab in the tab bar.</td></tr>
65
 
<tr><td valign="top"><tt>QStyleOptionTab.End</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The tab is the last tab in the tab bar.</td></tr>
66
 
<tr><td valign="top"><tt>QStyleOptionTab.OnlyOneTab</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The tab is both the first and the last tab in the tab bar.</td></tr>
67
 
</table></p>
 
149
<table class="valuelist">
 
150
<tr class="odd">
 
151
<td />
 
152
</tr>
 
153
<tr>
 
154
<th class="tblConst">Constant</th>
 
155
<th class="tblval">Value</th>
 
156
<th class="tbldscr">Description</th>
 
157
</tr>
 
158
<tr>
 
159
<td class="topAlign"><tt>QStyleOptionTab.Beginning</tt></td>
 
160
<td class=" topAlign"><tt>0</tt></td>
 
161
<td class="topAlign">The tab is the first tab in the tab bar.</td>
 
162
</tr>
 
163
<tr>
 
164
<td class="topAlign"><tt>QStyleOptionTab.Middle</tt></td>
 
165
<td class=" topAlign"><tt>1</tt></td>
 
166
<td class="topAlign">The tab is neither the first nor the last tab
 
167
in the tab bar.</td>
 
168
</tr>
 
169
<tr>
 
170
<td class="topAlign"><tt>QStyleOptionTab.End</tt></td>
 
171
<td class=" topAlign"><tt>2</tt></td>
 
172
<td class="topAlign">The tab is the last tab in the tab bar.</td>
 
173
</tr>
 
174
<tr>
 
175
<td class="topAlign"><tt>QStyleOptionTab.OnlyOneTab</tt></td>
 
176
<td class=" topAlign"><tt>3</tt></td>
 
177
<td class="topAlign">The tab is both the first and the last tab in
 
178
the tab bar.</td>
 
179
</tr>
 
180
</table>
68
181
<p>See also <a href="qstyleoptiontab.html#position-var">position</a>.</p>
69
 
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QStyleOptionTab" />QStyleOptionTab.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qstyleoptiontab.html">QStyleOptionTab</a> object, initializing the members variables to their default values.</p>
 
182
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QStyleOptionTab" />QStyleOptionTab.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qstyleoptiontab.html">QStyleOptionTab</a>
 
183
object, initializing the members variables to their default
 
184
values.</p>
 
185
 
 
186
 
70
187
<h3 class="fn"><a name="QStyleOptionTab-2" />QStyleOptionTab.__init__ (<i>self</i>, <a href="qstyleoptiontab.html">QStyleOptionTab</a>)</h3><p>Constructs a copy of the <i>other</i> style option.</p>
71
 
<hr /><h2>Member Documentation</h2><h3 class="fn"><a name="cornerWidgets-var" /><a href="qstyleoptiontab-cornerwidgets.html">CornerWidgets</a> cornerWidgets</h3><p>This variable holds an OR combination of CornerWidget values indicating the corner widgets of the tab bar.</p>
 
188
<hr /><h2>Member Documentation</h2><h3 class="fn"><a name="cornerWidgets-var" /><a href="qstyleoptiontab-cornerwidgets.html">CornerWidgets</a> cornerWidgets</h3><p>This variable holds an OR combination of CornerWidget values
 
189
indicating the corner widgets of the tab bar.</p>
72
190
<p>The default value is <a href="qstyleoptiontab.html#CornerWidget-enum">NoCornerWidgets</a>.</p>
73
191
<p>See also <a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidget</a>.</p>
74
 
<a name="//apple_ref/cpp/data/QStyleOptionTab/icon" />
 
192
 
 
193
 
75
194
<h3 class="fn"><a name="icon-var" /><a href="qicon.html">QIcon</a> icon</h3><p>This variable holds the icon for the tab.</p>
76
 
<p>The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename.</p>
77
 
<a name="//apple_ref/cpp/data/QStyleOptionTab/position" />
 
195
<p>The default value is an empty icon, i.e. an icon with neither a
 
196
pixmap nor a filename.</p>
 
197
 
 
198
 
78
199
<h3 class="fn"><a name="position-var" /><a href="qstyleoptiontab.html#TabPosition-enum">TabPosition</a> position</h3><p>This variable holds the position of the tab in the tab bar.</p>
79
 
<p>The default value is <a href="qstyleoptiontab.html#TabPosition-enum">Beginning</a>, i.e. the tab is the first tab in the tab bar.</p>
80
 
<a name="//apple_ref/cpp/data/QStyleOptionTab/row" />
 
200
<p>The default value is <a href="qstyleoptiontab.html#TabPosition-enum">Beginning</a>, i.e. the tab
 
201
is the first tab in the tab bar.</p>
 
202
 
 
203
 
81
204
<h3 class="fn"><a name="row-var" />int row</h3><p>This variable holds which row the tab is currently in.</p>
82
 
<p>The default value is 0, indicating the front row. Currently this property can only be 0.</p>
83
 
<a name="//apple_ref/cpp/data/QStyleOptionTab/selectedPosition" />
84
 
<h3 class="fn"><a name="selectedPosition-var" /><a href="qstyleoptiontab.html#SelectedPosition-enum">SelectedPosition</a> selectedPosition</h3><p>This variable holds the position of the selected tab in relation to this tab.</p>
85
 
<p>The default value is <a href="qstyleoptiontab.html#SelectedPosition-enum">NotAdjacent</a>, i.e. the tab is not adjacent to a selected tab nor is it the selected tab.</p>
86
 
<a name="//apple_ref/cpp/data/QStyleOptionTab/shape" />
87
 
<h3 class="fn"><a name="shape-var" /><a href="qtabbar.html#Shape-enum">QTabBar.Shape</a> shape</h3><p>This variable holds the tab shape used to draw the tab; by default QTabBar.RoundedNorth.</p>
 
205
<p>The default value is 0, indicating the front row. Currently this
 
206
property can only be 0.</p>
 
207
 
 
208
 
 
209
<h3 class="fn"><a name="selectedPosition-var" /><a href="qstyleoptiontab.html#SelectedPosition-enum">SelectedPosition</a> selectedPosition</h3><p>This variable holds the position of the selected tab in relation
 
210
to this tab.</p>
 
211
<p>The default value is <a href="qstyleoptiontab.html#SelectedPosition-enum">NotAdjacent</a>, i.e.
 
212
the tab is not adjacent to a selected tab nor is it the selected
 
213
tab.</p>
 
214
 
 
215
 
 
216
<h3 class="fn"><a name="shape-var" /><a href="qtabbar.html#Shape-enum">QTabBar.Shape</a> shape</h3><p>This variable holds the tab shape used to draw the tab; by
 
217
default QTabBar.RoundedNorth.</p>
88
218
<p>See also <a href="qtabbar.html#Shape-enum">QTabBar.Shape</a>.</p>
89
 
<a name="//apple_ref/cpp/data/QStyleOptionTab/text" />
 
219
 
 
220
 
90
221
<h3 class="fn"><a name="text-var" />QString text</h3><p>This variable holds the text of the tab.</p>
91
222
<p>The default value is an empty string.</p>
92
 
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.7 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.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.3</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'
 
223
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.8.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.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.7.0</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'