<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qstyleoption.cpp --> <head> <title>Qt 4.6: QStyleOptionTabWidgetFrameV2 Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QStyleOptionTabWidgetFrameV2"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <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="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QStyleOptionTabWidgetFrameV2 Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span> </h1> <p>The QStyleOptionTabWidgetFrameV2 class is used to describe the parameters for drawing the frame around a tab widget. <a href="#details">More...</a></p> <pre> #include <QStyleOptionTabWidgetFrameV2></pre><p>Inherits <a href="qstyleoptiontabwidgetframe.html">QStyleOptionTabWidgetFrame</a>.</p> <ul> <li><a href="qstyleoptiontabwidgetframev2-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="public-types"></a> <h2>Public Types</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</td></tr> </table> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#QStyleOptionTabWidgetFrameV2">QStyleOptionTabWidgetFrameV2</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#QStyleOptionTabWidgetFrameV2-2">QStyleOptionTabWidgetFrameV2</a></b> ( const QStyleOptionTabWidgetFrameV2 & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#QStyleOptionTabWidgetFrameV2-3">QStyleOptionTabWidgetFrameV2</a></b> ( const QStyleOptionTabWidgetFrame & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QStyleOptionTabWidgetFrameV2 & </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#operator-eq">operator=</a></b> ( const QStyleOptionTabWidgetFrame & <i>other</i> )</td></tr> </table> <ul> <li><div bar="2" class="fn"></div>2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li> </ul> <hr /> <a name="public-variables"></a> <h2>Public Variables</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#selectedTabRect-var">selectedTabRect</a></b></td></tr> <tr><td class="memItemLeft" align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptiontabwidgetframev2.html#tabBarRect-var">tabBarRect</a></b></td></tr> </table> <ul> <li><div bar="2" class="fn"></div>6 public variables inherited from <a href="qstyleoptiontabwidgetframe.html#public-variables">QStyleOptionTabWidgetFrame</a></li> <li><div bar="2" class="fn"></div>7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li> </ul> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QStyleOptionTabWidgetFrameV2 class is used to describe the parameters for drawing the frame around a tab widget.</p> <p>QStyleOptionTabWidgetFrameV2 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> <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> <p>For an example demonstrating how style options can be used, see the <a href="widgets-styles.html">Styles</a> example.</p> <p>See also <a href="qstyleoption.html">QStyleOption</a> and <a href="qtabwidget.html">QTabWidget</a>.</p> <hr /> <h2>Member Type Documentation</h2> <a name="//apple_ref/cpp/tag/QStyleOptionTabWidgetFrameV2/StyleOptionVersion"></a> <a name="//apple_ref/cpp/econst/QStyleOptionTabWidgetFrameV2/Version"></a> <h3 class="fn"><a name="StyleOptionVersion-enum"></a>enum QStyleOptionTabWidgetFrameV2::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> <p><table class="valuelist" 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>QStyleOptionTabWidgetFrameV2::Version</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">2</td></tr> </table></p> <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> <p>See also <a href="qstyleoptiontabwidgetframe.html#StyleOptionType-enum">StyleOptionType</a>.</p> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QStyleOptionTabWidgetFrameV2/QStyleOptionTabWidgetFrameV2"></a> <h3 class="fn"><a name="QStyleOptionTabWidgetFrameV2"></a>QStyleOptionTabWidgetFrameV2::QStyleOptionTabWidgetFrameV2 ()</h3> <p>Constructs a <a href="qstyleoptiontabwidgetframev2.html">QStyleOptionTabWidgetFrameV2</a>, initializing the members variables to their default values.</p> <h3 class="fn"><a name="QStyleOptionTabWidgetFrameV2-2"></a>QStyleOptionTabWidgetFrameV2::QStyleOptionTabWidgetFrameV2 ( const QStyleOptionTabWidgetFrameV2 & <i>other</i> )</h3> <p>Constructs a <a href="qstyleoptiontabwidgetframev2.html">QStyleOptionTabWidgetFrameV2</a> copy of the <i>other</i> style option.</p> <p>If the <i>other</i> style option's version is 1, the new style option's <a href="qstyleoptiontabwidgetframev2.html#selectedTabRect-var">selectedTabRect</a> and <a href="qstyleoptiontabwidgetframev2.html#tabBarRect-var">tabBarRect</a> will contain null rects</p> <p>See also <a href="qstyleoption.html#version-var">version</a>.</p> <h3 class="fn"><a name="QStyleOptionTabWidgetFrameV2-3"></a>QStyleOptionTabWidgetFrameV2::QStyleOptionTabWidgetFrameV2 ( const <a href="qstyleoptiontabwidgetframe.html">QStyleOptionTabWidgetFrame</a> & <i>other</i> )</h3> <p>Constructs a <a href="qstyleoptiontabwidgetframev2.html">QStyleOptionTabWidgetFrameV2</a> copy of the <i>other</i> style option.</p> <p>If the <i>other</i> style option's version is 1, the new style option's <a href="qstyleoptiontabwidgetframev2.html#selectedTabRect-var">selectedTabRect</a> and <a href="qstyleoptiontabwidgetframev2.html#tabBarRect-var">tabBarRect</a> will contain null rects</p> <p>See also <a href="qstyleoption.html#version-var">version</a>.</p> <a name="//apple_ref/cpp/instm/QStyleOptionTabWidgetFrameV2/operator="></a> <h3 class="fn"><a name="operator-eq"></a>QStyleOptionTabWidgetFrameV2 & QStyleOptionTabWidgetFrameV2::operator= ( const <a href="qstyleoptiontabwidgetframe.html">QStyleOptionTabWidgetFrame</a> & <i>other</i> )</h3> <p>Assigns the <i>other</i> style option to this style option. The <i>other</i> style option can be either of the <a href="qstyleoptionframev2.html">QStyleOptionFrameV2</a> or <a href="qstyleoptionframe.html">QStyleOptionFrame</a> types.</p> <p>If the <i>other</i> style option's version is 1, this style option's <a href="qstyleoptionframev2.html#FrameFeature-enum">QStyleOptionFrameV2::FrameFeature</a> value is set to <a href="qstyleoptionframev2.html#FrameFeature-enum">QStyleOptionFrameV2::None</a>. If its version is 2, its <a href="qstyleoptionframev2.html#FrameFeature-enum">FrameFeature</a> value is simply copied to this style option.</p> <hr /> <h2>Member Variable Documentation</h2> <a name="//apple_ref/cpp/data/QStyleOptionTabWidgetFrameV2/selectedTabRect"></a> <h3 class="fn"><a name="selectedTabRect-var"></a><a href="qrect.html">QRect</a> QStyleOptionTabWidgetFrameV2::selectedTabRect</h3> <p>This variable holds the rectangle containing the selected tab.</p> <p>This rectangle is contained within the <a href="qstyleoptiontabwidgetframev2.html#tabBarRect-var">tabBarRect</a>. The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.</p> <a name="//apple_ref/cpp/data/QStyleOptionTabWidgetFrameV2/tabBarRect"></a> <h3 class="fn"><a name="tabBarRect-var"></a><a href="qrect.html">QRect</a> QStyleOptionTabWidgetFrameV2::tabBarRect</h3> <p>This variable holds the rectangle containing all the tabs.</p> <p>The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>