Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 3575

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qstyleoption.cpp -->
  <title>QStyleOptionViewItem Class | Qt Widgets 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QStyleOptionViewItem</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QStyleOptionViewItem Class</h1>
<!-- $$$QStyleOptionViewItem-brief -->
<p>The <a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a> class is used to describe the parameters used to draw an item in a view widget. <a href="#details">More...</a></p>
<!-- @@@QStyleOptionViewItem -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QStyleOptionViewItem&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qstyleoption.html">QStyleOption</a></td></tr></table></div><ul>
<li><a href="qstyleoptionviewitem-members.html">List of all members, including inherited members</a></li>
<li><a href="qstyleoptionviewitem-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#Position-enum">Position</a></b> { Left, Right, Top, Bottom }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#ViewItemFeature-enum">ViewItemFeature</a></b> { None, WrapText, Alternate, HasCheckIndicator, HasDisplay, HasDecoration }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#ViewItemFeature-enum">ViewItemFeatures</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#ViewItemPosition-enum">ViewItemPosition</a></b> { Invalid, Beginning, Middle, End, OnlyOne }</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#QStyleOptionViewItem">QStyleOptionViewItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#QStyleOptionViewItem-1">QStyleOptionViewItem</a></b>(const QStyleOptionViewItem &amp;<i>other</i>)</td></tr>
</table></div>
<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 id="public-variables">Public Variables</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#backgroundBrush-var">backgroundBrush</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::CheckState </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#checkState-var">checkState</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#decorationAlignment-var">decorationAlignment</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Position </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#decorationSize-var">decorationSize</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Alignment </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#displayAlignment-var">displayAlignment</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ViewItemFeatures </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#features-var">features</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFont </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#font-var">font</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#icon-var">icon</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#index-var">index</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#showDecorationSelected-var">showDecorationSelected</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#text-var">text</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::TextElideMode </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#textElideMode-var">textElideMode</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ViewItemPosition </td><td class="memItemRight bottomAlign"><b><a href="qstyleoptionviewitem.html#viewItemPosition-var">viewItemPosition</a></b></td></tr>
</table></div>
<ul>
<li class="fn">8 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
</ul>
<a name="details"></a>
<!-- $$$QStyleOptionViewItem-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a> class is used to describe the parameters used to draw an item in a view widget.</p>
<p><a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a> contains all the information that <a href="qstyle.html">QStyle</a> functions need to draw the items for Qt's model/view classes.</p>
<p>For performance reasons, the access to the member variables is direct (i.e&#x2e;, using the <code>.</code> or <code>-&gt;</code> 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="qtwidgets-widgets-styles-example.html">Styles</a> example.</p>
</div>
<p><b>See also </b><a href="qstyleoption.html">QStyleOption</a> and <a href="model-view-programming.html">Model/View Programming</a>.</p>
<!-- @@@QStyleOptionViewItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Position$$$Left$$$Right$$$Top$$$Bottom -->
<h3 class="fn" id="Position-enum"><a name="Position-enum"></a>enum QStyleOptionViewItem::<span class="name">Position</span></h3>
<p>This enum describes the position of the item's decoration.</p>
<div class="table"><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"><code>QStyleOptionViewItem::Left</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">On the left of the text.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::Right</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">On the right of the text.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::Top</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Above the text.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::Bottom</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">Below the text.</td></tr>
</table></div>
<p><b>See also </b><a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a>.</p>
<!-- @@@Position -->
<!-- $$$StyleOptionType$$$Type -->
<h3 class="fn" id="StyleOptionType-enum"><a name="StyleOptionType-enum"></a>enum QStyleOptionViewItem::<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>
<div class="table"><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"><code>QStyleOptionViewItem::Type</code></td><td class="topAlign tblval"><code>SO_ViewItem</code></td><td class="topAlign">The type of style option provided (<a href="qstyleoption.html#OptionType-enum">SO_ViewItem</a> for this class).</td></tr>
</table></div>
<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="qstyleoptionviewitem.html#StyleOptionVersion-enum">StyleOptionVersion</a>.</p>
<!-- @@@StyleOptionType -->
<!-- $$$StyleOptionVersion$$$Version -->
<h3 class="fn" id="StyleOptionVersion-enum"><a name="StyleOptionVersion-enum"></a>enum QStyleOptionViewItem::<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>
<div class="table"><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"><code>QStyleOptionViewItem::Version</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">4</td></tr>
</table></div>
<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="qstyleoptionviewitem.html#StyleOptionType-enum">StyleOptionType</a>.</p>
<!-- @@@StyleOptionVersion -->
<!-- $$$ViewItemFeature$$$None$$$WrapText$$$Alternate$$$HasCheckIndicator$$$HasDisplay$$$HasDecoration -->
<h3 class="flags" id="ViewItemFeature-enum"><a name="ViewItemFeature-enum"></a>enum QStyleOptionViewItem::<span class="name">ViewItemFeature</span><br/>flags QStyleOptionViewItem::<span class="name">ViewItemFeatures</span></h3>
<p>This enum describes the different types of features an item can have.</p>
<div class="table"><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"><code>QStyleOptionViewItem::None</code></td><td class="topAlign tblval"><code>0x00</code></td><td class="topAlign">Indicates a normal item.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::WrapText</code></td><td class="topAlign tblval"><code>0x01</code></td><td class="topAlign">Indicates an item with wrapped text.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::Alternate</code></td><td class="topAlign tblval"><code>0x02</code></td><td class="topAlign">Indicates that the item's background is rendered using alternateBase.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::HasCheckIndicator</code></td><td class="topAlign tblval"><code>0x04</code></td><td class="topAlign">Indicates that the item has a check state indicator.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::HasDisplay</code></td><td class="topAlign tblval"><code>0x08</code></td><td class="topAlign">Indicates that the item has a display role.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::HasDecoration</code></td><td class="topAlign tblval"><code>0x10</code></td><td class="topAlign">Indicates that the item has a decoration role.</td></tr>
</table></div>
<p>The ViewItemFeatures type is a typedef for <a href="../qtcore/qflags.html">QFlags</a>&lt;ViewItemFeature&gt;. It stores an OR combination of ViewItemFeature values.</p>
<!-- @@@ViewItemFeature -->
<!-- $$$ViewItemPosition$$$Invalid$$$Beginning$$$Middle$$$End$$$OnlyOne -->
<h3 class="fn" id="ViewItemPosition-enum"><a name="ViewItemPosition-enum"></a>enum QStyleOptionViewItem::<span class="name">ViewItemPosition</span></h3>
<p>This enum is used to represent the placement of the item on a row. This can be used to draw items differently depending on their placement, for example by putting rounded edges at the beginning and end, and straight edges in between.</p>
<div class="table"><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"><code>QStyleOptionViewItem::Invalid</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The ViewItemPosition is unknown and should be disregarded.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::Beginning</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">The item appears at the beginning of the row.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::Middle</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The item appears in the middle of the row.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::End</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The item appears at the end of the row.</td></tr>
<tr><td class="topAlign"><code>QStyleOptionViewItem::OnlyOne</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">The item is the only one on the row, and is therefore both at the beginning and the end.</td></tr>
</table></div>
<!-- @@@ViewItemPosition -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QStyleOptionViewItem[overload1]$$$QStyleOptionViewItem -->
<h3 class="fn" id="QStyleOptionViewItem"><a name="QStyleOptionViewItem"></a>QStyleOptionViewItem::<span class="name">QStyleOptionViewItem</span>()</h3>
<p>Constructs a <a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a>, initializing the members variables to their default values.</p>
<!-- @@@QStyleOptionViewItem -->
<!-- $$$QStyleOptionViewItem$$$QStyleOptionViewItemconstQStyleOptionViewItem& -->
<h3 class="fn" id="QStyleOptionViewItem-1"><a name="QStyleOptionViewItem-1"></a>QStyleOptionViewItem::<span class="name">QStyleOptionViewItem</span>(const <span class="type"><a href="qstyleoptionviewitem.html#QStyleOptionViewItem">QStyleOptionViewItem</a></span> &amp;<i>other</i>)</h3>
<p>Constructs a copy of the <i>other</i> style option.</p>
<!-- @@@QStyleOptionViewItem -->
</div>
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$backgroundBrush -->
<h3 class="fn" id="backgroundBrush-var"><a name="backgroundBrush-var"></a><span class="type"><a href="../qtgui/qbrush.html">QBrush</a></span> QStyleOptionViewItem::<span class="name">backgroundBrush</span></h3>
<p>The <a href="../qtgui/qbrush.html">QBrush</a> that should be used to paint the view items background.</p>
<!-- @@@backgroundBrush -->
<!-- $$$checkState -->
<h3 class="fn" id="checkState-var"><a name="checkState-var"></a><span class="type"><a href="../qtcore/qt.html#CheckState-enum">Qt::CheckState</a></span> QStyleOptionViewItem::<span class="name">checkState</span></h3>
<p>If this view item is checkable, i.e&#x2e;, ViewItemFeature::HasCheckIndicator is true, <code>checkState</code> is true if the item is checked; otherwise, it is false.</p>
<!-- @@@checkState -->
<!-- $$$decorationAlignment -->
<h3 class="fn" id="decorationAlignment-var"><a name="decorationAlignment-var"></a><span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QStyleOptionViewItem::<span class="name">decorationAlignment</span></h3>
<p>This variable holds the alignment of the decoration for the item</p>
<p>The default value is <a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>.</p>
<!-- @@@decorationAlignment -->
<!-- $$$decorationPosition -->
<h3 class="fn" id="decorationPosition-var"><a name="decorationPosition-var"></a><span class="type"><a href="qstyleoptionviewitem.html#Position-enum">Position</a></span> QStyleOptionViewItem::<span class="name">decorationPosition</span></h3>
<p>This variable holds the position of the decoration for the item</p>
<p>The default value is <a href="qstyleoptionviewitem.html#Position-enum">Left</a>.</p>
<p><b>See also </b><a href="qstyleoptionviewitem.html#Position-enum">Position</a>.</p>
<!-- @@@decorationPosition -->
<!-- $$$decorationSize -->
<h3 class="fn" id="decorationSize-var"><a name="decorationSize-var"></a><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QStyleOptionViewItem::<span class="name">decorationSize</span></h3>
<p>This variable holds the size of the decoration for the item</p>
<p>The default value is <a href="../qtcore/qsize.html">QSize</a>(-1, -1), i.e&#x2e; an invalid size.</p>
<p><b>See also </b><a href="qstyleoptionviewitem.html#decorationAlignment-var">decorationAlignment</a> and <a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a>.</p>
<!-- @@@decorationSize -->
<!-- $$$displayAlignment -->
<h3 class="fn" id="displayAlignment-var"><a name="displayAlignment-var"></a><span class="type"><a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::Alignment</a></span> QStyleOptionViewItem::<span class="name">displayAlignment</span></h3>
<p>This variable holds the alignment of the display value for the item</p>
<p>The default value is <a href="../qtcore/qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>.</p>
<!-- @@@displayAlignment -->
<!-- $$$features -->
<h3 class="fn" id="features-var"><a name="features-var"></a><span class="type"><a href="qstyleoptionviewitem.html#ViewItemFeature-enum">ViewItemFeatures</a></span> QStyleOptionViewItem::<span class="name">features</span></h3>
<p>This variable holds a bitwise OR of the features that describe this view item</p>
<p><b>See also </b><a href="qstyleoptionviewitem.html#ViewItemFeature-enum">ViewItemFeature</a>.</p>
<!-- @@@features -->
<!-- $$$font -->
<h3 class="fn" id="font-var"><a name="font-var"></a><span class="type"><a href="../qtgui/qfont.html">QFont</a></span> QStyleOptionViewItem::<span class="name">font</span></h3>
<p>This variable holds the font used for the item</p>
<p>By default, the application's default font is used.</p>
<p><b>See also </b><a href="../qtgui/qfont.html">QFont</a>.</p>
<!-- @@@font -->
<!-- $$$icon -->
<h3 class="fn" id="icon-var"><a name="icon-var"></a><span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> QStyleOptionViewItem::<span class="name">icon</span></h3>
<p>The icon (if any) to be drawn in the view item.</p>
<!-- @@@icon -->
<!-- $$$index -->
<h3 class="fn" id="index-var"><a name="index-var"></a><span class="type"><a href="../qtcore/qmodelindex.html">QModelIndex</a></span> QStyleOptionViewItem::<span class="name">index</span></h3>
<p>The model index that is to be drawn.</p>
<!-- @@@index -->
<!-- $$$showDecorationSelected -->
<h3 class="fn" id="showDecorationSelected-var"><a name="showDecorationSelected-var"></a><span class="type">bool</span> QStyleOptionViewItem::<span class="name">showDecorationSelected</span></h3>
<p>This variable holds whether the decoration should be highlighted on selected items</p>
<p>If this option is true, the branch and any decorations on selected items should be highlighted, indicating that the item is selected; otherwise, no highlighting is required. The default value is false.</p>
<p><b>See also </b><a href="qstyle.html#StyleHint-enum">QStyle::SH_ItemView_ShowDecorationSelected</a> and <a href="qabstractitemview.html">QAbstractItemView</a>.</p>
<!-- @@@showDecorationSelected -->
<!-- $$$text -->
<h3 class="fn" id="text-var"><a name="text-var"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QStyleOptionViewItem::<span class="name">text</span></h3>
<p>The text (if any) to be drawn in the view item.</p>
<!-- @@@text -->
<!-- $$$textElideMode -->
<h3 class="fn" id="textElideMode-var"><a name="textElideMode-var"></a><span class="type"><a href="../qtcore/qt.html#TextElideMode-enum">Qt::TextElideMode</a></span> QStyleOptionViewItem::<span class="name">textElideMode</span></h3>
<p>where ellipsis should be added for text that is too long to fit into an item</p>
<p>The default value is <a href="../qtcore/qt.html#TextElideMode-enum">Qt::ElideMiddle</a>, i.e&#x2e; the ellipsis appears in the middle of the text.</p>
<p><b>See also </b><a href="../qtcore/qt.html#TextElideMode-enum">Qt::TextElideMode</a> and <a href="qstyle.html#StyleHint-enum">QStyle::SH_ItemView_EllipsisLocation</a>.</p>
<!-- @@@textElideMode -->
<!-- $$$viewItemPosition -->
<h3 class="fn" id="viewItemPosition-var"><a name="viewItemPosition-var"></a><span class="type"><a href="qstyleoptionviewitem.html#ViewItemPosition-enum">ViewItemPosition</a></span> QStyleOptionViewItem::<span class="name">viewItemPosition</span></h3>
<p>Gives the position of this view item relative to other items. See the <a href="qstyleoptionviewitem.html#ViewItemPosition-enum">ViewItemPosition</a> enum for the details.</p>
<!-- @@@viewItemPosition -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    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.<br>    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. </p>
</div>
</body>
</html>