1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<!-- qstyleoption.cpp -->
7
<title>Qt 4.7: QStyleOptionTabWidgetFrame Class Reference</title>
8
<link rel="stylesheet" type="text/css" href="style/style.css" />
9
<script src="scripts/jquery.js" type="text/javascript"></script>
10
<script src="scripts/functions.js" type="text/javascript"></script>
12
<body class="offline narrow creator">
13
<div class="header" id="qtdocheader">
16
<a href="index.html">Home</a></div>
17
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
18
<div id="nav-topright">
20
<li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
21
<li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
22
<li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
23
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
25
<li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
30
<li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.7</a></span></li>
31
<li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS </a></li>
34
<ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu">
35
<li><a href="#">API Lookup</a>
37
<li><a href="classes.html">Class index</a></li>
38
<li><a href="functions.html">Function index</a></li>
39
<li><a href="modules.html">Modules</a></li>
40
<li><a href="namespaces.html">Namespaces</a></li>
41
<li><a href="qtglobal.html">Global Declarations</a></li>
42
<li><a href="licensing.html">Licenses and Credits</a></li>
45
<li><a href="#">Qt Topics</a>
46
<ul id="topmenuTopic">
47
<li><a href="qt-basic-concepts.html">Programming with Qt</a></li>
48
<li><a href="qtquick.html">Device UI's & Qt Quick</a></li>
49
<li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
50
<li><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
51
<li><a href="platform-specific.html">Platform-specific info</a></li>
52
<li><a href="technology-apis.html">Qt and Key Technologies</a></li>
53
<li><a href="best-practices.html">How-To's and Best Practices</a></li>
56
<li><a href="#">Examples</a>
57
<ul id="topmenuexample">
58
<li><a href="all-examples.html">Examples</a></li>
59
<li><a href="tutorials.html">Tutorials</a></li>
60
<li><a href="demos.html">Demos</a></li>
61
<li><a href="qdeclarativeexamples.html">QML Examples</a></li>
71
<div class="bd group">
73
<div class="searchlabel">
76
<form id="qtdocsearch" action="" onsubmit="return false;">
78
<input type="text" name="searchstring" id="pageType" value="" />
82
<div class="box first bottombar" id="lookup">
83
<h2 title="API Lookup"><span></span>
85
<div id="list001" class="list">
87
<li class="defaultLink"><a href="classes.html">Class index</a></li>
88
<li class="defaultLink"><a href="functions.html">Function index</a></li>
89
<li class="defaultLink"><a href="modules.html">Modules</a></li>
90
<li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
91
<li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
92
<li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
96
<div class="box bottombar" id="topics">
97
<h2 title="Qt Topics"><span></span>
99
<div id="list002" class="list">
101
<li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li>
102
<li class="defaultLink"><a href="qtquick.html">Device UI's & Qt Quick</a></li>
103
<li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
104
<li class="defaultLink"><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
105
<li class="defaultLink"><a href="platform-specific.html">Platform-specific info</a></li>
106
<li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li>
107
<li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li>
111
<div class="box" id="examples">
112
<h2 title="Examples"><span></span>
114
<div id="list003" class="list">
116
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
117
<li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
118
<li class="defaultLink"><a href="demos.html">Demos</a></li>
119
<li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
125
<div class="toolbar">
126
<div class="breadcrumb toolblock">
128
<li class="first"><a href="index.html">Home</a></li>
129
<!-- Bread crumbs goes here -->
130
<li><a href="modules.html">Modules</a></li> <li><a href="qtgui.html">QtGui</a></li>
131
<li>QStyleOptionTabWidgetFrame</li>
134
<div class="toolbuttons toolblock">
136
<li id="smallA" class="t_button">A</li>
137
<li id="medA" class="t_button active">A</li>
138
<li id="bigA" class="t_button">A</li>
139
<li id="print" class="t_button"><a href="javascript:this.print();">
140
<span>Print</span></a></li>
144
<div class="content">
146
<h3><a name="toc">Contents</a></h3>
148
<li class="level1"><a href="#public-types">Public Types</a></li>
149
<li class="level1"><a href="#public-functions">Public Functions</a></li>
150
<li class="level1"><a href="#public-variables">Public Variables</a></li>
151
<li class="level1"><a href="#details">Detailed Description</a></li>
154
<h1 class="title">QStyleOptionTabWidgetFrame Class Reference</h1>
155
<!-- $$$QStyleOptionTabWidgetFrame-brief -->
156
<p>The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget. <a href="#details">More...</a></p>
157
<!-- @@@QStyleOptionTabWidgetFrame -->
158
<pre class="highlightedCode brush: cpp"> #include <QStyleOptionTabWidgetFrame></pre><p>Inherits <a href="qstyleoption.html">QStyleOption</a>.</p>
159
<p>Inherited by <a href="qstyleoptiontabwidgetframev2.html">QStyleOptionTabWidgetFrameV2</a>.</p>
161
<li><a href="qstyleoptiontabwidgetframe-members.html">List of all members, including inherited members</a></li>
163
<a name="public-types"></a>
164
<h2>Public Types</h2>
165
<table class="alignedsummary">
166
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</td></tr>
167
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</td></tr>
169
<a name="public-functions"></a>
170
<h2>Public Functions</h2>
171
<table class="alignedsummary">
172
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#QStyleOptionTabWidgetFrame">QStyleOptionTabWidgetFrame</a></b> ()</td></tr>
173
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#QStyleOptionTabWidgetFrame-2">QStyleOptionTabWidgetFrame</a></b> ( const QStyleOptionTabWidgetFrame & <i>other</i> )</td></tr>
176
<li class="fn">2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li>
178
<a name="public-variables"></a>
179
<h2>Public Variables</h2>
180
<table class="alignedsummary">
181
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#leftCornerWidgetSize-var">leftCornerWidgetSize</a></b></td></tr>
182
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#lineWidth-var">lineWidth</a></b></td></tr>
183
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#midLineWidth-var">midLineWidth</a></b></td></tr>
184
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#rightCornerWidgetSize-var">rightCornerWidgetSize</a></b></td></tr>
185
<tr><td class="memItemLeft rightAlign topAlign"> QTabBar::Shape </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#shape-var">shape</a></b></td></tr>
186
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptiontabwidgetframe.html#tabBarSize-var">tabBarSize</a></b></td></tr>
189
<li class="fn">7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
191
<a name="details"></a>
192
<!-- $$$QStyleOptionTabWidgetFrame-description -->
194
<h2>Detailed Description</h2>
195
<p>The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.</p>
196
<p>QStyleOptionTabWidgetFrame contains all the information that <a href="qstyle.html">QStyle</a> functions need to draw the frame around <a href="qtabwidget.html">QTabWidget</a>.</p>
197
<p>For performance reasons, the access to the member variables is direct (i.e., using the <tt>.</tt> or <tt>-></tt> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.</p>
198
<p>For an example demonstrating how style options can be used, see the <a href="widgets-styles.html">Styles</a> example.</p>
200
<p>See also <a href="qstyleoption.html">QStyleOption</a> and <a href="qtabwidget.html">QTabWidget</a>.</p>
201
<!-- @@@QStyleOptionTabWidgetFrame -->
203
<h2>Member Type Documentation</h2>
204
<!-- $$$StyleOptionType$$$Type -->
205
<h3 class="fn"><a name="StyleOptionType-enum"></a>enum QStyleOptionTabWidgetFrame::StyleOptionType</h3>
206
<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>
207
<table class="valuelist"><tr class="odd"><tr><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
208
<tr><td class="topAlign"><tt>QStyleOptionTabWidgetFrame::Type</tt></td><td class=" topAlign"><tt>SO_TabWidgetFrame</tt></td><td class="topAlign">The type of style option provided (<a href="qstyleoption.html#OptionType-enum">SO_TabWidgetFrame</a> for this class).</td></tr>
210
<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>
211
<p>See also <a href="qstyleoptiontabwidgetframe.html#StyleOptionVersion-enum">StyleOptionVersion</a>.</p>
212
<!-- @@@StyleOptionType -->
213
<!-- $$$StyleOptionVersion$$$Version -->
214
<h3 class="fn"><a name="StyleOptionVersion-enum"></a>enum QStyleOptionTabWidgetFrame::StyleOptionVersion</h3>
215
<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>
216
<table class="valuelist"><tr class="odd"><tr><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
217
<tr><td class="topAlign"><tt>QStyleOptionTabWidgetFrame::Version</tt></td><td class=" topAlign"><tt>1</tt></td><td class="topAlign">1</td></tr>
219
<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>
220
<p>See also <a href="qstyleoptiontabwidgetframe.html#StyleOptionType-enum">StyleOptionType</a>.</p>
221
<!-- @@@StyleOptionVersion -->
224
<h2>Member Function Documentation</h2>
225
<!-- $$$QStyleOptionTabWidgetFrame[overload1]$$$QStyleOptionTabWidgetFrame -->
226
<h3 class="fn"><a name="QStyleOptionTabWidgetFrame"></a>QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame ()</h3>
227
<p>Constructs a <a href="qstyleoptiontabwidgetframe.html">QStyleOptionTabWidgetFrame</a>, initializing the members variables to their default values.</p>
228
<!-- @@@QStyleOptionTabWidgetFrame -->
229
<!-- $$$QStyleOptionTabWidgetFrame$$$QStyleOptionTabWidgetFrameconstQStyleOptionTabWidgetFrame& -->
230
<h3 class="fn"><a name="QStyleOptionTabWidgetFrame-2"></a>QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame ( const QStyleOptionTabWidgetFrame & <i>other</i> )</h3>
231
<p>Constructs a copy of <i>other</i>.</p>
232
<!-- @@@QStyleOptionTabWidgetFrame -->
235
<h2>Member Variable Documentation</h2>
236
<!-- $$$leftCornerWidgetSize -->
237
<h3 class="fn"><a name="leftCornerWidgetSize-var"></a><a href="qsize.html">QSize</a> QStyleOptionTabWidgetFrame::leftCornerWidgetSize</h3>
238
<p>This variable holds the size of the left-corner widget.</p>
239
<p>The default value is <a href="qsize.html">QSize</a>(-1, -1), i.e. an invalid size.</p>
240
<!-- @@@leftCornerWidgetSize -->
241
<!-- $$$lineWidth -->
242
<h3 class="fn"><a name="lineWidth-var"></a>int QStyleOptionTabWidgetFrame::lineWidth</h3>
243
<p>This variable holds the line width for drawing the panel.</p>
244
<p>The default value is 0.</p>
245
<!-- @@@lineWidth -->
246
<!-- $$$midLineWidth -->
247
<h3 class="fn"><a name="midLineWidth-var"></a>int QStyleOptionTabWidgetFrame::midLineWidth</h3>
248
<p>This variable holds the mid-line width for drawing the panel.</p>
249
<p>The mid line width is usually used in drawing sunken or raised frames. The default value is 0.</p>
250
<!-- @@@midLineWidth -->
251
<!-- $$$rightCornerWidgetSize -->
252
<h3 class="fn"><a name="rightCornerWidgetSize-var"></a><a href="qsize.html">QSize</a> QStyleOptionTabWidgetFrame::rightCornerWidgetSize</h3>
253
<p>This variable holds the size of the right-corner widget.</p>
254
<p>The default value is <a href="qsize.html">QSize</a>(-1, -1), i.e. an invalid size.</p>
255
<!-- @@@rightCornerWidgetSize -->
257
<h3 class="fn"><a name="shape-var"></a><a href="qtabbar.html#Shape-enum">QTabBar::Shape</a> QStyleOptionTabWidgetFrame::shape</h3>
258
<p>This variable holds the tab shape used to draw the tabs.</p>
259
<p>The default value is <a href="qtabbar.html#Shape-enum">QTabBar::RoundedNorth</a>.</p>
261
<!-- $$$tabBarSize -->
262
<h3 class="fn"><a name="tabBarSize-var"></a><a href="qsize.html">QSize</a> QStyleOptionTabWidgetFrame::tabBarSize</h3>
263
<p>This variable holds the size of the tab bar.</p>
264
<p>The default value is <a href="qsize.html">QSize</a>(-1, -1), i.e. an invalid size.</p>
265
<!-- @@@tabBarSize -->
267
<div class="feedback t_button">
268
[+] Documentation Feedback</div>
278
<acronym title="Copyright">©</acronym> 2008-2010 Nokia Corporation and/or its
279
subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation
280
in Finland and/or other countries worldwide.</p>
282
All other trademarks are property of their respective owners. <a title="Privacy Policy"
283
href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
286
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.</p>
288
Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
289
Free Documentation License version 1.3</a>
290
as published by the Free Software Foundation.</p>
292
<div id="feedbackBox">
293
<div id="feedcloseX" class="feedclose t_button">X</div>
294
<form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
295
<p id="noteHead">Thank you for giving your feedback.</p> <p class="note">Make sure it is related to this specific page. For more general bugs and
296
requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
297
<p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
298
<p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>