Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 6527

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qstyleoption.cpp -->
  <title>Qt 4.8: QStyleOptionMenuItem Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QStyleOptionMenuItem</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-variables">Public Variables</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QStyleOptionMenuItem Class Reference</h1>
<!-- $$$QStyleOptionMenuItem-brief -->
<p>The QStyleOptionMenuItem class is used to describe the parameter necessary for drawing a menu item. <a href="#details">More...</a></p>
<!-- @@@QStyleOptionMenuItem -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QStyleOptionMenuItem&gt;</span></pre><p><b>Inherits: </b><a href="qstyleoption.html">QStyleOption</a>.</p>
<ul>
<li><a href="qstyleoptionmenuitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#CheckType-enum">CheckType</a></b> { NotCheckable, Exclusive, NonExclusive }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#MenuItemType-enum">MenuItemType</a></b> { Normal, DefaultItem, Separator, SubMenu, ..., EmptyArea }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#QStyleOptionMenuItem">QStyleOptionMenuItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#QStyleOptionMenuItem-2">QStyleOptionMenuItem</a></b> ( const QStyleOptionMenuItem &amp; <i>other</i> )</td></tr>
</table>
<ul>
<li class="fn">2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li>
</ul>
<a name="public-variables"></a>
<h2>Public Variables</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> CheckType </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#checkType-var">checkType</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#checked-var">checked</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFont </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#font-var">font</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#icon-var">icon</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#maxIconWidth-var">maxIconWidth</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#menuHasCheckableItems-var">menuHasCheckableItems</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> MenuItemType </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#menuItemType-var">menuItemType</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#menuRect-var">menuRect</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#tabWidth-var">tabWidth</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionmenuitem.html#text-var">text</a></b></td></tr>
</table>
<ul>
<li class="fn">7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
</ul>
<a name="details"></a>
<!-- $$$QStyleOptionMenuItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QStyleOptionMenuItem class is used to describe the parameter necessary for drawing a menu item.</p>
<p>QStyleOptionMenuItem contains all the information that <a href="qstyle.html">QStyle</a> functions need to draw the menu items from <a href="qmenu.html">QMenu</a>. It is also used for drawing other menu-related widgets.</p>
<p>For performance reasons, the access to the member variables is direct (i.e&#x2e;, using the <tt>.</tt> or <tt>-&gt;</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>
</div>
<p><b>See also </b><a href="qstyleoption.html">QStyleOption</a>.</p>
<!-- @@@QStyleOptionMenuItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$CheckType$$$NotCheckable$$$Exclusive$$$NonExclusive -->
<h3 class="fn"><a name="CheckType-enum"></a>enum QStyleOptionMenuItem::<span class="name">CheckType</span></h3>
<p>This enum is used to indicate whether or not a check mark should be drawn for the item, or even if it should be drawn at all.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::NotCheckable</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The item is not checkable.</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Exclusive</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The item is an exclusive check item (like a radio button).</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::NonExclusive</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The item is a non-exclusive check item (like a check box).</td></tr>
</table>
<p><b>See also </b><a href="qstyleoptionmenuitem.html#checkType-var">checkType</a>, <a href="qaction.html#checkable-prop">QAction::checkable</a>, <a href="qaction.html#checked-prop">QAction::checked</a>, and <a href="qactiongroup.html#exclusive-prop">QActionGroup::exclusive</a>.</p>
<!-- @@@CheckType -->
<!-- $$$MenuItemType$$$Normal$$$DefaultItem$$$Separator$$$SubMenu$$$Scroller$$$TearOff$$$Margin$$$EmptyArea -->
<h3 class="fn"><a name="MenuItemType-enum"></a>enum QStyleOptionMenuItem::<span class="name">MenuItemType</span></h3>
<p>This enum indicates the type of menu item that the structure describes.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Normal</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">A normal menu item.</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::DefaultItem</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">A menu item that is the default action as specified with <a href="qmenu.html#defaultAction">QMenu::defaultAction</a>().</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Separator</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">A menu separator.</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::SubMenu</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Indicates the menu item points to a sub-menu.</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Scroller</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">A popup menu scroller (currently only used on Mac OS X).</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::TearOff</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">A tear-off handle for the menu.</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Margin</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The margin of the menu.</td></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::EmptyArea</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The empty area of the menu.</td></tr>
</table>
<p><b>See also </b><a href="qstyleoptionmenuitem.html#menuItemType-var">menuItemType</a>.</p>
<!-- @@@MenuItemType -->
<!-- $$$StyleOptionType$$$Type -->
<h3 class="fn"><a name="StyleOptionType-enum"></a>enum QStyleOptionMenuItem::<span class="name">StyleOptionType</span></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>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Type</tt></td><td class="topAlign"><tt>SO_MenuItem</tt></td><td class="topAlign">The type of style option provided (<a href="qstyleoption.html#OptionType-enum">SO_MenuItem</a> for this class).</td></tr>
</table>
<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>
<p><b>See also </b><a href="qstyleoptionmenuitem.html#StyleOptionVersion-enum">StyleOptionVersion</a>.</p>
<!-- @@@StyleOptionType -->
<!-- $$$StyleOptionVersion$$$Version -->
<h3 class="fn"><a name="StyleOptionVersion-enum"></a>enum QStyleOptionMenuItem::<span class="name">StyleOptionVersion</span></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>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QStyleOptionMenuItem::Version</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">1</td></tr>
</table>
<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><b>See also </b><a href="qstyleoptionmenuitem.html#StyleOptionType-enum">StyleOptionType</a>.</p>
<!-- @@@StyleOptionVersion -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QStyleOptionMenuItem[overload1]$$$QStyleOptionMenuItem -->
<h3 class="fn"><a name="QStyleOptionMenuItem"></a>QStyleOptionMenuItem::<span class="name">QStyleOptionMenuItem</span> ()</h3>
<p>Constructs a <a href="qstyleoptionmenuitem.html">QStyleOptionMenuItem</a>, initializing the members variables to their default values.</p>
<!-- @@@QStyleOptionMenuItem -->
<!-- $$$QStyleOptionMenuItem$$$QStyleOptionMenuItemconstQStyleOptionMenuItem& -->
<h3 class="fn"><a name="QStyleOptionMenuItem-2"></a>QStyleOptionMenuItem::<span class="name">QStyleOptionMenuItem</span> ( const <span class="type">QStyleOptionMenuItem</span> &amp; <i>other</i> )</h3>
<p>Constructs a copy of the <i>other</i> style option.</p>
<!-- @@@QStyleOptionMenuItem -->
</div>
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$checkType -->
<h3 class="fn"><a name="checkType-var"></a><span class="type"><a href="qstyleoptionmenuitem.html#CheckType-enum">CheckType</a></span> QStyleOptionMenuItem::<span class="name">checkType</span></h3>
<p>This variable holds the type of checkmark of the menu item.</p>
<p>The default value is <a href="qstyleoptionmenuitem.html#CheckType-enum">NotCheckable</a>.</p>
<p><b>See also </b><a href="qstyleoptionmenuitem.html#CheckType-enum">CheckType</a>.</p>
<!-- @@@checkType -->
<!-- $$$checked -->
<h3 class="fn"><a name="checked-var"></a><span class="type">bool</span> QStyleOptionMenuItem::<span class="name">checked</span></h3>
<p>This variable holds whether the menu item is checked or not.</p>
<p>The default value is false.</p>
<!-- @@@checked -->
<!-- $$$font -->
<h3 class="fn"><a name="font-var"></a><span class="type"><a href="qfont.html">QFont</a></span> QStyleOptionMenuItem::<span class="name">font</span></h3>
<p>This variable holds the font used for the menu item text.</p>
<p>This is the font that should be used for drawing the menu text minus the shortcut. The shortcut is usually drawn using the painter's font. By default, the application's default font is used.</p>
<!-- @@@font -->
<!-- $$$icon -->
<h3 class="fn"><a name="icon-var"></a><span class="type"><a href="qicon.html">QIcon</a></span> QStyleOptionMenuItem::<span class="name">icon</span></h3>
<p>This variable holds the icon for the menu item.</p>
<p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p>
<!-- @@@icon -->
<!-- $$$maxIconWidth -->
<h3 class="fn"><a name="maxIconWidth-var"></a><span class="type">int</span> QStyleOptionMenuItem::<span class="name">maxIconWidth</span></h3>
<p>This variable holds the maximum icon width for the icon in the menu item.</p>
<p>This can be used for drawing the icon into the correct place or properly aligning items. The variable must be set regardless of whether or not the menu item has an icon. The default value is 0.</p>
<!-- @@@maxIconWidth -->
<!-- $$$menuHasCheckableItems -->
<h3 class="fn"><a name="menuHasCheckableItems-var"></a><span class="type">bool</span> QStyleOptionMenuItem::<span class="name">menuHasCheckableItems</span></h3>
<p>This variable holds whether the menu as a whole has checkable items or not.</p>
<p>The default value is true.</p>
<p>If this option is set to false, then the menu has no checkable items. This makes it possible for GUI styles to save some horizontal space that would normally be used for the check column.</p>
<!-- @@@menuHasCheckableItems -->
<!-- $$$menuItemType -->
<h3 class="fn"><a name="menuItemType-var"></a><span class="type"><a href="qstyleoptionmenuitem.html#MenuItemType-enum">MenuItemType</a></span> QStyleOptionMenuItem::<span class="name">menuItemType</span></h3>
<p>This variable holds the type of menu item.</p>
<p>The default value is <a href="qstyleoptionmenuitem.html#MenuItemType-enum">Normal</a>.</p>
<p><b>See also </b><a href="qstyleoptionmenuitem.html#MenuItemType-enum">MenuItemType</a>.</p>
<!-- @@@menuItemType -->
<!-- $$$menuRect -->
<h3 class="fn"><a name="menuRect-var"></a><span class="type"><a href="qrect.html">QRect</a></span> QStyleOptionMenuItem::<span class="name">menuRect</span></h3>
<p>This variable holds the rectangle for the entire menu.</p>
<p>The default value is a null rectangle, i.e&#x2e; a rectangle with both the width and the height set to 0.</p>
<!-- @@@menuRect -->
<!-- $$$tabWidth -->
<h3 class="fn"><a name="tabWidth-var"></a><span class="type">int</span> QStyleOptionMenuItem::<span class="name">tabWidth</span></h3>
<p>This variable holds the tab width for the menu item.</p>
<p>The tab width is the distance between the text of the menu item and the shortcut. The default value is 0.</p>
<!-- @@@tabWidth -->
<!-- $$$text -->
<h3 class="fn"><a name="text-var"></a><span class="type"><a href="qstring.html">QString</a></span> QStyleOptionMenuItem::<span class="name">text</span></h3>
<p>This variable holds the text for the menu item.</p>
<p>Note that the text format is something like this &quot;Menu text<b>\t</b>Shortcut&quot;.</p>
<p>If the menu item doesn't have a shortcut, it will just contain the menu item's text. The default value is an empty string.</p>
<!-- @@@text -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>