Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 6921

qt-doc-4.8.5-10.fc18.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" />
<!-- qtreewidget.cpp -->
  <title>Qt 4.8: QTreeWidgetItem 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>QTreeWidgetItem</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="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#subclassing">Subclassing</a></li>
</ul>
</div>
<h1 class="title">QTreeWidgetItem Class Reference</h1>
<!-- $$$QTreeWidgetItem-brief -->
<p>The QTreeWidgetItem class provides an item for use with the <a href="qtreewidget.html">QTreeWidget</a> convenience class. <a href="#details">More...</a></p>
<!-- @@@QTreeWidgetItem -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QTreeWidgetItem&gt;</span></pre><ul>
<li><a href="qtreewidgetitem-members.html">List of all members, including inherited members</a></li>
<li><a href="qtreewidgetitem-obsolete.html">Obsolete 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="qtreewidgetitem.html#ChildIndicatorPolicy-enum">ChildIndicatorPolicy</a></b> { ShowIndicator, DontShowIndicator, DontShowIndicatorWhenChildless }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#ItemType-enum">ItemType</a></b> { Type, UserType }</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="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></b> ( int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-2">QTreeWidgetItem</a></b> ( const QStringList &amp; <i>strings</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-3">QTreeWidgetItem</a></b> ( QTreeWidget * <i>parent</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-4">QTreeWidgetItem</a></b> ( QTreeWidget * <i>parent</i>, const QStringList &amp; <i>strings</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-5">QTreeWidgetItem</a></b> ( QTreeWidget * <i>parent</i>, QTreeWidgetItem * <i>preceding</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-6">QTreeWidgetItem</a></b> ( QTreeWidgetItem * <i>parent</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-7">QTreeWidgetItem</a></b> ( QTreeWidgetItem * <i>parent</i>, const QStringList &amp; <i>strings</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-8">QTreeWidgetItem</a></b> ( QTreeWidgetItem * <i>parent</i>, QTreeWidgetItem * <i>preceding</i>, int <i>type</i> = Type )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#QTreeWidgetItem-9">QTreeWidgetItem</a></b> ( const QTreeWidgetItem &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#dtor.QTreeWidgetItem">~QTreeWidgetItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#addChild">addChild</a></b> ( QTreeWidgetItem * <i>child</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#addChildren">addChildren</a></b> ( const QList&lt;QTreeWidgetItem *&gt; &amp; <i>children</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#background">background</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::CheckState </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#checkState">checkState</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTreeWidgetItem * </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#child">child</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#childCount">childCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTreeWidgetItem::ChildIndicatorPolicy </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#childIndicatorPolicy">childIndicatorPolicy</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QTreeWidgetItem * </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#clone">clone</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#columnCount">columnCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#data">data</a></b> ( int <i>column</i>, int <i>role</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::ItemFlags </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#flags">flags</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFont </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#font">font</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#foreground">foreground</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#icon">icon</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#indexOfChild">indexOfChild</a></b> ( QTreeWidgetItem * <i>child</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#insertChild">insertChild</a></b> ( int <i>index</i>, QTreeWidgetItem * <i>child</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#insertChildren">insertChildren</a></b> ( int <i>index</i>, const QList&lt;QTreeWidgetItem *&gt; &amp; <i>children</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#isDisabled">isDisabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#isExpanded">isExpanded</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#isFirstColumnSpanned">isFirstColumnSpanned</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#isHidden">isHidden</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#isSelected">isSelected</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTreeWidgetItem * </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#parent">parent</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#read">read</a></b> ( QDataStream &amp; <i>in</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#removeChild">removeChild</a></b> ( QTreeWidgetItem * <i>child</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setBackground">setBackground</a></b> ( int <i>column</i>, const QBrush &amp; <i>brush</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setCheckState">setCheckState</a></b> ( int <i>column</i>, Qt::CheckState <i>state</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setChildIndicatorPolicy">setChildIndicatorPolicy</a></b> ( QTreeWidgetItem::ChildIndicatorPolicy <i>policy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setData">setData</a></b> ( int <i>column</i>, int <i>role</i>, const QVariant &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setDisabled">setDisabled</a></b> ( bool <i>disabled</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setExpanded">setExpanded</a></b> ( bool <i>expand</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setFirstColumnSpanned">setFirstColumnSpanned</a></b> ( bool <i>span</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setFlags">setFlags</a></b> ( Qt::ItemFlags <i>flags</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setFont">setFont</a></b> ( int <i>column</i>, const QFont &amp; <i>font</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setForeground">setForeground</a></b> ( int <i>column</i>, const QBrush &amp; <i>brush</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setHidden">setHidden</a></b> ( bool <i>hide</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setIcon">setIcon</a></b> ( int <i>column</i>, const QIcon &amp; <i>icon</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setSelected">setSelected</a></b> ( bool <i>select</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setSizeHint">setSizeHint</a></b> ( int <i>column</i>, const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a></b> ( int <i>column</i>, const QString &amp; <i>statusTip</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setText">setText</a></b> ( int <i>column</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setTextAlignment">setTextAlignment</a></b> ( int <i>column</i>, int <i>alignment</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setToolTip">setToolTip</a></b> ( int <i>column</i>, const QString &amp; <i>toolTip</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a></b> ( int <i>column</i>, const QString &amp; <i>whatsThis</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#sizeHint">sizeHint</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#sortChildren">sortChildren</a></b> ( int <i>column</i>, Qt::SortOrder <i>order</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#statusTip">statusTip</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTreeWidgetItem * </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#takeChild">takeChild</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QTreeWidgetItem *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#takeChildren">takeChildren</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#text">text</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#textAlignment">textAlignment</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#toolTip">toolTip</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTreeWidget * </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#treeWidget">treeWidget</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#type">type</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#whatsThis">whatsThis</a></b> ( int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#write">write</a></b> ( QDataStream &amp; <i>out</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#operator-lt">operator&lt;</a></b> ( const QTreeWidgetItem &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTreeWidgetItem &amp; </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#operator-eq">operator=</a></b> ( const QTreeWidgetItem &amp; <i>other</i> )</td></tr>
</table>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#emitDataChanged">emitDataChanged</a></b> ()</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#operator-lt-lt-170">operator&lt;&lt;</a></b> ( QDataStream &amp; <i>out</i>, const QTreeWidgetItem &amp; <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#operator-gt-gt-101">operator&gt;&gt;</a></b> ( QDataStream &amp; <i>in</i>, QTreeWidgetItem &amp; <i>item</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QTreeWidgetItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QTreeWidgetItem class provides an item for use with the <a href="qtreewidget.html">QTreeWidget</a> convenience class.</p>
<p>Tree widget items are used to hold rows of information for tree widgets. Rows usually contain several columns of data, each of which can contain a text label and an icon.</p>
<p>The QTreeWidgetItem class is a convenience class that replaces the QListViewItem class in Qt 3. It provides an item for use with the <a href="qtreewidget.html">QTreeWidget</a> class.</p>
<p>Items are usually constructed with a parent that is either a <a href="qtreewidget.html">QTreeWidget</a> (for top-level items) or a QTreeWidgetItem (for items on lower levels of the tree). For example, the following code constructs a top-level item to represent cities of the world, and adds a entry for Oslo as a child item:</p>
<pre class="cpp">     <span class="type">QTreeWidgetItem</span> <span class="operator">*</span>cities <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTreeWidgetItem</span>(treeWidget);
     cities<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">0</span><span class="operator">,</span> tr(<span class="string">&quot;Cities&quot;</span>));
     <span class="type">QTreeWidgetItem</span> <span class="operator">*</span>osloItem <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTreeWidgetItem</span>(cities);
     osloItem<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">0</span><span class="operator">,</span> tr(<span class="string">&quot;Oslo&quot;</span>));
     osloItem<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">1</span><span class="operator">,</span> tr(<span class="string">&quot;Yes&quot;</span>));</pre>
<p>Items can be added in a particular order by specifying the item they follow when they are constructed:</p>
<pre class="cpp">     <span class="type">QTreeWidgetItem</span> <span class="operator">*</span>planets <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QTreeWidgetItem</span>(treeWidget<span class="operator">,</span> cities);
     planets<span class="operator">-</span><span class="operator">&gt;</span>setText(<span class="number">0</span><span class="operator">,</span> tr(<span class="string">&quot;Planets&quot;</span>));</pre>
<p>Each column in an item can have its own background brush which is set with the <a href="qtreewidgetitem.html#setBackground">setBackground</a>() function. The current background brush can be found with <a href="qtreewidgetitem.html#background">background</a>(). The text label for each column can be rendered with its own font and brush. These are specified with the <a href="qtreewidgetitem.html#setFont">setFont</a>() and <a href="qtreewidgetitem.html#setForeground">setForeground</a>() functions, and read with <a href="qtreewidgetitem.html#font">font</a>() and <a href="qtreewidgetitem.html#foreground">foreground</a>().</p>
<p>The main difference between top-level items and those in lower levels of the tree is that a top-level item has no <a href="qtreewidgetitem.html#parent">parent</a>(). This information can be used to tell the difference between items, and is useful to know when inserting and removing items from the tree. Children of an item can be removed with <a href="qtreewidgetitem.html#takeChild">takeChild</a>() and inserted at a given index in the list of children with the <a href="qtreewidgetitem.html#insertChild">insertChild</a>() function.</p>
<p>By default, items are enabled, selectable, checkable, and can be the source of a drag and drop operation. Each item's flags can be changed by calling <a href="qtreewidgetitem.html#setFlags">setFlags</a>() with the appropriate value (see <a href="qt.html#ItemFlag-enum">Qt::ItemFlags</a>). Checkable items can be checked and unchecked with the <a href="qtreewidgetitem.html#setCheckState">setCheckState</a>() function. The corresponding <a href="qtreewidgetitem.html#checkState">checkState</a>() function indicates whether the item is currently checked.</p>
<a name="subclassing"></a>
<h3>Subclassing</h3>
<p>When subclassing QTreeWidgetItem to provide custom items, it is possible to define new types for them so that they can be distinguished from standard items. The constructors for subclasses that require this feature need to call the base class constructor with a new type value equal to or greater than <a href="qtreewidgetitem.html#ItemType-enum">UserType</a>.</p>
</div>
<p><b>See also </b><a href="qtreewidget.html">QTreeWidget</a>, <a href="qtreewidgetitemiterator.html">QTreeWidgetItemIterator</a>, <a href="model-view-programming.html">Model/View Programming</a>, <a href="qlistwidgetitem.html">QListWidgetItem</a>, and <a href="qtablewidgetitem.html">QTableWidgetItem</a>.</p>
<!-- @@@QTreeWidgetItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ChildIndicatorPolicy$$$ShowIndicator$$$DontShowIndicator$$$DontShowIndicatorWhenChildless -->
<h3 class="fn"><a name="ChildIndicatorPolicy-enum"></a>enum QTreeWidgetItem::<span class="name">ChildIndicatorPolicy</span></h3>
<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>QTreeWidgetItem::ShowIndicator</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The controls for expanding and collapsing will be shown for this item even if there are no children.</td></tr>
<tr><td class="topAlign"><tt>QTreeWidgetItem::DontShowIndicator</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The controls for expanding and collapsing will never be shown even if there are children. If the node is forced open the user will not be able to expand or collapse the item.</td></tr>
<tr><td class="topAlign"><tt>QTreeWidgetItem::DontShowIndicatorWhenChildless</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The controls for expanding and collapsing will be shown if the item contains children.</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.3.</p>
<!-- @@@ChildIndicatorPolicy -->
<!-- $$$ItemType$$$Type$$$UserType -->
<h3 class="fn"><a name="ItemType-enum"></a>enum QTreeWidgetItem::<span class="name">ItemType</span></h3>
<p>This enum describes the types that are used to describe tree widget items.</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>QTreeWidgetItem::Type</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The default type for tree widget items.</td></tr>
<tr><td class="topAlign"><tt>QTreeWidgetItem::UserType</tt></td><td class="topAlign"><tt>1000</tt></td><td class="topAlign">The minimum value for custom types. Values below UserType are reserved by Qt.</td></tr>
</table>
<p>You can define new user types in <a href="qtreewidgetitem.html">QTreeWidgetItem</a> subclasses to ensure that custom items are treated specially; for example, when items are sorted.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@ItemType -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QTreeWidgetItem[overload1]$$$QTreeWidgetItemint -->
<h3 class="fn"><a name="QTreeWidgetItem"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item of the specified <i>type</i>. The item must be inserted into a tree widget.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemconstQStringList&int -->
<h3 class="fn"><a name="QTreeWidgetItem-2"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>strings</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item of the specified <i>type</i>. The item must be inserted into a tree widget. The given list of <i>strings</i> will be set as the item text for each column in the item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemQTreeWidget*int -->
<h3 class="fn"><a name="QTreeWidgetItem-3"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type"><a href="qtreewidget.html">QTreeWidget</a></span> * <i>parent</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item of the specified <i>type</i> and appends it to the items in the given <i>parent</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemQTreeWidget*constQStringList&int -->
<h3 class="fn"><a name="QTreeWidgetItem-4"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type"><a href="qtreewidget.html">QTreeWidget</a></span> * <i>parent</i>, const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>strings</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item of the specified <i>type</i> and appends it to the items in the given <i>parent</i>. The given list of <i>strings</i> will be set as the item text for each column in the item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemQTreeWidget*QTreeWidgetItem*int -->
<h3 class="fn"><a name="QTreeWidgetItem-5"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type"><a href="qtreewidget.html">QTreeWidget</a></span> * <i>parent</i>, <span class="type">QTreeWidgetItem</span> * <i>preceding</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item of the specified <i>type</i> and inserts it into the given <i>parent</i> after the <i>preceding</i> item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemQTreeWidgetItem*int -->
<h3 class="fn"><a name="QTreeWidgetItem-6"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type">QTreeWidgetItem</span> * <i>parent</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item and append it to the given <i>parent</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemQTreeWidgetItem*constQStringList&int -->
<h3 class="fn"><a name="QTreeWidgetItem-7"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type">QTreeWidgetItem</span> * <i>parent</i>, const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>strings</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item and append it to the given <i>parent</i>. The given list of <i>strings</i> will be set as the item text for each column in the item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemQTreeWidgetItem*QTreeWidgetItem*int -->
<h3 class="fn"><a name="QTreeWidgetItem-8"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( <span class="type">QTreeWidgetItem</span> * <i>parent</i>, <span class="type">QTreeWidgetItem</span> * <i>preceding</i>, <span class="type">int</span> <i>type</i> = Type )</h3>
<p>Constructs a tree widget item of the specified <i>type</i> that is inserted into the <i>parent</i> after the <i>preceding</i> child item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#type">type</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$QTreeWidgetItem$$$QTreeWidgetItemconstQTreeWidgetItem& -->
<h3 class="fn"><a name="QTreeWidgetItem-9"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span> ( const <span class="type">QTreeWidgetItem</span> &amp; <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>. Note that <a href="qtreewidgetitem.html#type">type</a>() and <a href="qtreewidgetitem.html#treeWidget">treeWidget</a>() are not copied.</p>
<p>This function is useful when reimplementing <a href="qtreewidgetitem.html#clone">clone</a>().</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#data">data</a>() and <a href="qtreewidgetitem.html#flags">flags</a>().</p>
<!-- @@@QTreeWidgetItem -->
<!-- $$$~QTreeWidgetItem[overload1]$$$~QTreeWidgetItem -->
<h3 class="fn"><a name="dtor.QTreeWidgetItem"></a>QTreeWidgetItem::<span class="name">~QTreeWidgetItem</span> ()<tt> [virtual]</tt></h3>
<p>Destroys this tree widget item.</p>
<p>The item will be removed from <a href="qtreewidget.html">QTreeWidget</a>s to which it has been added. This makes it safe to delete an item at any time.</p>
<!-- @@@~QTreeWidgetItem -->
<!-- $$$addChild[overload1]$$$addChildQTreeWidgetItem* -->
<h3 class="fn"><a name="addChild"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">addChild</span> ( <span class="type">QTreeWidgetItem</span> * <i>child</i> )</h3>
<p>Appends the <i>child</i> item to the list of children.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#insertChild">insertChild</a>() and <a href="qtreewidgetitem.html#takeChild">takeChild</a>().</p>
<!-- @@@addChild -->
<!-- $$$addChildren[overload1]$$$addChildrenconstQList<QTreeWidgetItem*>& -->
<h3 class="fn"><a name="addChildren"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">addChildren</span> ( const <span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type">QTreeWidgetItem</span> *&gt; &amp; <i>children</i> )</h3>
<p>Appends the given list of <i>children</i> to the item.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#insertChildren">insertChildren</a>() and <a href="qtreewidgetitem.html#takeChildren">takeChildren</a>().</p>
<!-- @@@addChildren -->
<!-- $$$background[overload1]$$$backgroundint -->
<h3 class="fn"><a name="background"></a><span class="type"><a href="qbrush.html">QBrush</a></span> QTreeWidgetItem::<span class="name">background</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the brush used to render the background of the specified <i>column</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setBackground">setBackground</a>() and <a href="qtreewidgetitem.html#foreground">foreground</a>().</p>
<!-- @@@background -->
<!-- $$$checkState[overload1]$$$checkStateint -->
<h3 class="fn"><a name="checkState"></a><span class="type"><a href="qt.html#CheckState-enum">Qt::CheckState</a></span> QTreeWidgetItem::<span class="name">checkState</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the check state of the label in the given <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setCheckState">setCheckState</a>() and <a href="qt.html#CheckState-enum">Qt::CheckState</a>.</p>
<!-- @@@checkState -->
<!-- $$$child[overload1]$$$childint -->
<h3 class="fn"><a name="child"></a><span class="type">QTreeWidgetItem</span> * QTreeWidgetItem::<span class="name">child</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the item at the given <i>index</i> in the list of the item's children.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#parent">parent</a>().</p>
<!-- @@@child -->
<!-- $$$childCount[overload1]$$$childCount -->
<h3 class="fn"><a name="childCount"></a><span class="type">int</span> QTreeWidgetItem::<span class="name">childCount</span> () const</h3>
<p>Returns the number of child items.</p>
<!-- @@@childCount -->
<!-- $$$childIndicatorPolicy[overload1]$$$childIndicatorPolicy -->
<h3 class="fn"><a name="childIndicatorPolicy"></a><span class="type"><a href="qtreewidgetitem.html#ChildIndicatorPolicy-enum">QTreeWidgetItem::ChildIndicatorPolicy</a></span> QTreeWidgetItem::<span class="name">childIndicatorPolicy</span> () const</h3>
<p>Returns the item indicator policy. This policy decides when the tree branch expand/collapse indicator is shown.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setChildIndicatorPolicy">setChildIndicatorPolicy</a>().</p>
<!-- @@@childIndicatorPolicy -->
<!-- $$$clone[overload1]$$$clone -->
<h3 class="fn"><a name="clone"></a><span class="type">QTreeWidgetItem</span> * QTreeWidgetItem::<span class="name">clone</span> () const<tt> [virtual]</tt></h3>
<p>Creates a deep copy of the item and of its children.</p>
<!-- @@@clone -->
<!-- $$$columnCount[overload1]$$$columnCount -->
<h3 class="fn"><a name="columnCount"></a><span class="type">int</span> QTreeWidgetItem::<span class="name">columnCount</span> () const</h3>
<p>Returns the number of columns in the item.</p>
<!-- @@@columnCount -->
<!-- $$$data[overload1]$$$dataintint -->
<h3 class="fn"><a name="data"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QTreeWidgetItem::<span class="name">data</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>role</i> ) const<tt> [virtual]</tt></h3>
<p>Returns the value for the item's <i>column</i> and <i>role</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setData">setData</a>().</p>
<!-- @@@data -->
<!-- $$$emitDataChanged[overload1]$$$emitDataChanged -->
<h3 class="fn"><a name="emitDataChanged"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">emitDataChanged</span> ()<tt> [protected]</tt></h3>
<p>Causes the model associated with this item to emit a <a href="qabstractitemmodel.html#dataChanged">dataChanged</a>() signal for this item.</p>
<p>You normally only need to call this function if you have subclassed <a href="qtreewidgetitem.html">QTreeWidgetItem</a> and reimplemented <a href="qtreewidgetitem.html#data">data</a>() and/or <a href="qtreewidgetitem.html#setData">setData</a>().</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setData">setData</a>().</p>
<!-- @@@emitDataChanged -->
<!-- $$$flags[overload1]$$$flags -->
<h3 class="fn"><a name="flags"></a><span class="type"><a href="qt.html#ItemFlag-enum">Qt::ItemFlags</a></span> QTreeWidgetItem::<span class="name">flags</span> () const</h3>
<p>Returns the flags used to describe the item. These determine whether the item can be checked, edited, and selected.</p>
<p>The default value for flags is <a href="qt.html#ItemFlag-enum">Qt::ItemIsSelectable</a> | <a href="qt.html#ItemFlag-enum">Qt::ItemIsUserCheckable</a> | <a href="qt.html#ItemFlag-enum">Qt::ItemIsEnabled</a> | <a href="qt.html#ItemFlag-enum">Qt::ItemIsDragEnabled</a>. If the item was constructed with a parent, flags will in addition contain <a href="qt.html#ItemFlag-enum">Qt::ItemIsDropEnabled</a>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setFlags">setFlags</a>().</p>
<!-- @@@flags -->
<!-- $$$font[overload1]$$$fontint -->
<h3 class="fn"><a name="font"></a><span class="type"><a href="qfont.html">QFont</a></span> QTreeWidgetItem::<span class="name">font</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the font used to render the text in the specified <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setFont">setFont</a>().</p>
<!-- @@@font -->
<!-- $$$foreground[overload1]$$$foregroundint -->
<h3 class="fn"><a name="foreground"></a><span class="type"><a href="qbrush.html">QBrush</a></span> QTreeWidgetItem::<span class="name">foreground</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the brush used to render the foreground (e.g&#x2e; text) of the specified <i>column</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setForeground">setForeground</a>() and <a href="qtreewidgetitem.html#background">background</a>().</p>
<!-- @@@foreground -->
<!-- $$$icon[overload1]$$$iconint -->
<h3 class="fn"><a name="icon"></a><span class="type"><a href="qicon.html">QIcon</a></span> QTreeWidgetItem::<span class="name">icon</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the icon that is displayed in the specified <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setIcon">setIcon</a>() and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>
<!-- @@@icon -->
<!-- $$$indexOfChild[overload1]$$$indexOfChildQTreeWidgetItem* -->
<h3 class="fn"><a name="indexOfChild"></a><span class="type">int</span> QTreeWidgetItem::<span class="name">indexOfChild</span> ( <span class="type">QTreeWidgetItem</span> * <i>child</i> ) const</h3>
<p>Returns the index of the given <i>child</i> in the item's list of children.</p>
<!-- @@@indexOfChild -->
<!-- $$$insertChild[overload1]$$$insertChildintQTreeWidgetItem* -->
<h3 class="fn"><a name="insertChild"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">insertChild</span> ( <span class="type">int</span> <i>index</i>, <span class="type">QTreeWidgetItem</span> * <i>child</i> )</h3>
<p>Inserts the <i>child</i> item at <i>index</i> in the list of children.</p>
<p>If the child has already been inserted somewhere else it wont be inserted again.</p>
<!-- @@@insertChild -->
<!-- $$$insertChildren[overload1]$$$insertChildrenintconstQList<QTreeWidgetItem*>& -->
<h3 class="fn"><a name="insertChildren"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">insertChildren</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type">QTreeWidgetItem</span> *&gt; &amp; <i>children</i> )</h3>
<p>Inserts the given list of <i>children</i> into the list of the item children at <i>index</i> .</p>
<p>Children that have already been inserted somewhere else wont be inserted.</p>
<p>This function was introduced in Qt 4.1.</p>
<!-- @@@insertChildren -->
<!-- $$$isDisabled[overload1]$$$isDisabled -->
<h3 class="fn"><a name="isDisabled"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isDisabled</span> () const</h3>
<p>Returns true if the item is disabled; otherwise returns false.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setFlags">setFlags</a>().</p>
<!-- @@@isDisabled -->
<!-- $$$isExpanded[overload1]$$$isExpanded -->
<h3 class="fn"><a name="isExpanded"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isExpanded</span> () const</h3>
<p>Returns true if the item is expanded, otherwise returns false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setExpanded">setExpanded</a>().</p>
<!-- @@@isExpanded -->
<!-- $$$isFirstColumnSpanned[overload1]$$$isFirstColumnSpanned -->
<h3 class="fn"><a name="isFirstColumnSpanned"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isFirstColumnSpanned</span> () const</h3>
<p>Returns true if the item is spanning all the columns in a row; otherwise returns false.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setFirstColumnSpanned">setFirstColumnSpanned</a>().</p>
<!-- @@@isFirstColumnSpanned -->
<!-- $$$isHidden[overload1]$$$isHidden -->
<h3 class="fn"><a name="isHidden"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isHidden</span> () const</h3>
<p>Returns true if the item is hidden, otherwise returns false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setHidden">setHidden</a>().</p>
<!-- @@@isHidden -->
<!-- $$$isSelected[overload1]$$$isSelected -->
<h3 class="fn"><a name="isSelected"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isSelected</span> () const</h3>
<p>Returns true if the item is selected, otherwise returns false.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setSelected">setSelected</a>().</p>
<!-- @@@isSelected -->
<!-- $$$parent[overload1]$$$parent -->
<h3 class="fn"><a name="parent"></a><span class="type">QTreeWidgetItem</span> * QTreeWidgetItem::<span class="name">parent</span> () const</h3>
<p>Returns the item's parent.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#child">child</a>().</p>
<!-- @@@parent -->
<!-- $$$read[overload1]$$$readQDataStream& -->
<h3 class="fn"><a name="read"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">read</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>in</i> )<tt> [virtual]</tt></h3>
<p>Reads the item from stream <i>in</i>. This only reads data into a single item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#write">write</a>().</p>
<!-- @@@read -->
<!-- $$$removeChild[overload1]$$$removeChildQTreeWidgetItem* -->
<h3 class="fn"><a name="removeChild"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">removeChild</span> ( <span class="type">QTreeWidgetItem</span> * <i>child</i> )</h3>
<p>Removes the given item indicated by <i>child</i>. The removed item will not be deleted.</p>
<!-- @@@removeChild -->
<!-- $$$setBackground[overload1]$$$setBackgroundintconstQBrush& -->
<h3 class="fn"><a name="setBackground"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setBackground</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qbrush.html">QBrush</a></span> &amp; <i>brush</i> )</h3>
<p>Sets the background brush of the label in the given <i>column</i> to the specified <i>brush</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#background">background</a>() and <a href="qtreewidgetitem.html#setForeground">setForeground</a>().</p>
<!-- @@@setBackground -->
<!-- $$$setCheckState[overload1]$$$setCheckStateintQt::CheckState -->
<h3 class="fn"><a name="setCheckState"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setCheckState</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qt.html#CheckState-enum">Qt::CheckState</a></span> <i>state</i> )</h3>
<p>Sets the item in the given <i>column</i> check state to be <i>state</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#checkState">checkState</a>().</p>
<!-- @@@setCheckState -->
<!-- $$$setChildIndicatorPolicy[overload1]$$$setChildIndicatorPolicyQTreeWidgetItem::ChildIndicatorPolicy -->
<h3 class="fn"><a name="setChildIndicatorPolicy"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setChildIndicatorPolicy</span> ( <span class="type"><a href="qtreewidgetitem.html#ChildIndicatorPolicy-enum">QTreeWidgetItem::ChildIndicatorPolicy</a></span> <i>policy</i> )</h3>
<p>Sets the item indicator <i>policy</i>. This policy decides when the tree branch expand/collapse indicator is shown. The default value is ShowForChildren.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#childIndicatorPolicy">childIndicatorPolicy</a>().</p>
<!-- @@@setChildIndicatorPolicy -->
<!-- $$$setData[overload1]$$$setDataintintconstQVariant& -->
<h3 class="fn"><a name="setData"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setData</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>role</i>, const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>value</i> )<tt> [virtual]</tt></h3>
<p>Sets the value for the item's <i>column</i> and <i>role</i> to the given <i>value</i>.</p>
<p>The <i>role</i> describes the type of data specified by <i>value</i>, and is defined by the <a href="qt.html#ItemDataRole-enum">Qt::ItemDataRole</a> enum.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#data">data</a>().</p>
<!-- @@@setData -->
<!-- $$$setDisabled[overload1]$$$setDisabledbool -->
<h3 class="fn"><a name="setDisabled"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setDisabled</span> ( <span class="type">bool</span> <i>disabled</i> )</h3>
<p>Disables the item if <i>disabled</i> is true; otherwise enables the item.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#isDisabled">isDisabled</a>() and <a href="qtreewidgetitem.html#setFlags">setFlags</a>().</p>
<!-- @@@setDisabled -->
<!-- $$$setExpanded[overload1]$$$setExpandedbool -->
<h3 class="fn"><a name="setExpanded"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setExpanded</span> ( <span class="type">bool</span> <i>expand</i> )</h3>
<p>Expands the item if <i>expand</i> is true, otherwise collapses the item.</p>
<p><b>Warning:</b> The <a href="qtreewidgetitem.html">QTreeWidgetItem</a> must be added to the <a href="qtreewidget.html">QTreeWidget</a> before calling this function.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#isExpanded">isExpanded</a>().</p>
<!-- @@@setExpanded -->
<!-- $$$setFirstColumnSpanned[overload1]$$$setFirstColumnSpannedbool -->
<h3 class="fn"><a name="setFirstColumnSpanned"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setFirstColumnSpanned</span> ( <span class="type">bool</span> <i>span</i> )</h3>
<p>Sets the first section to span all columns if <i>span</i> is true; otherwise all item sections are shown.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#isFirstColumnSpanned">isFirstColumnSpanned</a>().</p>
<!-- @@@setFirstColumnSpanned -->
<!-- $$$setFlags[overload1]$$$setFlagsQt::ItemFlags -->
<h3 class="fn"><a name="setFlags"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setFlags</span> ( <span class="type"><a href="qt.html#ItemFlag-enum">Qt::ItemFlags</a></span> <i>flags</i> )</h3>
<p>Sets the flags for the item to the given <i>flags</i>. These determine whether the item can be selected or modified. This is often used to disable an item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#flags">flags</a>().</p>
<!-- @@@setFlags -->
<!-- $$$setFont[overload1]$$$setFontintconstQFont& -->
<h3 class="fn"><a name="setFont"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setFont</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qfont.html">QFont</a></span> &amp; <i>font</i> )</h3>
<p>Sets the font used to display the text in the given <i>column</i> to the given <i>font</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#font">font</a>(), <a href="qtreewidgetitem.html#setText">setText</a>(), and <a href="qtreewidgetitem.html#setForeground">setForeground</a>().</p>
<!-- @@@setFont -->
<!-- $$$setForeground[overload1]$$$setForegroundintconstQBrush& -->
<h3 class="fn"><a name="setForeground"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setForeground</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qbrush.html">QBrush</a></span> &amp; <i>brush</i> )</h3>
<p>Sets the foreground brush of the label in the given <i>column</i> to the specified <i>brush</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#foreground">foreground</a>() and <a href="qtreewidgetitem.html#setBackground">setBackground</a>().</p>
<!-- @@@setForeground -->
<!-- $$$setHidden[overload1]$$$setHiddenbool -->
<h3 class="fn"><a name="setHidden"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setHidden</span> ( <span class="type">bool</span> <i>hide</i> )</h3>
<p>Hides the item if <i>hide</i> is true, otherwise shows the item.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#isHidden">isHidden</a>().</p>
<!-- @@@setHidden -->
<!-- $$$setIcon[overload1]$$$setIconintconstQIcon& -->
<h3 class="fn"><a name="setIcon"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setIcon</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i> )</h3>
<p>Sets the icon to be displayed in the given <i>column</i> to <i>icon</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#icon">icon</a>(), <a href="qtreewidgetitem.html#setText">setText</a>(), and <a href="qabstractitemview.html#iconSize-prop">iconSize</a>.</p>
<!-- @@@setIcon -->
<!-- $$$setSelected[overload1]$$$setSelectedbool -->
<h3 class="fn"><a name="setSelected"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setSelected</span> ( <span class="type">bool</span> <i>select</i> )</h3>
<p>Sets the selected state of the item to <i>select</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#isSelected">isSelected</a>().</p>
<!-- @@@setSelected -->
<!-- $$$setSizeHint[overload1]$$$setSizeHintintconstQSize& -->
<h3 class="fn"><a name="setSizeHint"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setSizeHint</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>size</i> )</h3>
<p>Sets the size hint for the tree item in the given <i>column</i> to be <i>size</i>. If no size hint is set, the item delegate will compute the size hint based on the item data.</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#sizeHint">sizeHint</a>().</p>
<!-- @@@setSizeHint -->
<!-- $$$setStatusTip[overload1]$$$setStatusTipintconstQString& -->
<h3 class="fn"><a name="setStatusTip"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setStatusTip</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>statusTip</i> )</h3>
<p>Sets the status tip for the given <i>column</i> to the given <i>statusTip</i>. <a href="qtreewidget.html">QTreeWidget</a> mouse tracking needs to be enabled for this feature to work.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#statusTip">statusTip</a>(), <a href="qtreewidgetitem.html#setToolTip">setToolTip</a>(), and <a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>
<!-- @@@setStatusTip -->
<!-- $$$setText[overload1]$$$setTextintconstQString& -->
<h3 class="fn"><a name="setText"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setText</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>Sets the text to be displayed in the given <i>column</i> to the given <i>text</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#text">text</a>(), <a href="qtreewidgetitem.html#setFont">setFont</a>(), and <a href="qtreewidgetitem.html#setForeground">setForeground</a>().</p>
<!-- @@@setText -->
<!-- $$$setTextAlignment[overload1]$$$setTextAlignmentintint -->
<h3 class="fn"><a name="setTextAlignment"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setTextAlignment</span> ( <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>alignment</i> )</h3>
<p>Sets the text alignment for the label in the given <i>column</i> to the <i>alignment</i> specified (see <a href="qt.html#AlignmentFlag-enum">Qt::AlignmentFlag</a>).</p>
<p><b>See also </b><a href="qtreewidgetitem.html#textAlignment">textAlignment</a>().</p>
<!-- @@@setTextAlignment -->
<!-- $$$setToolTip[overload1]$$$setToolTipintconstQString& -->
<h3 class="fn"><a name="setToolTip"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setToolTip</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>toolTip</i> )</h3>
<p>Sets the tooltip for the given <i>column</i> to <i>toolTip</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#toolTip">toolTip</a>(), <a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>
<!-- @@@setToolTip -->
<!-- $$$setWhatsThis[overload1]$$$setWhatsThisintconstQString& -->
<h3 class="fn"><a name="setWhatsThis"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setWhatsThis</span> ( <span class="type">int</span> <i>column</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>whatsThis</i> )</h3>
<p>Sets the &quot;What's This?&quot; help for the given <i>column</i> to <i>whatsThis</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#whatsThis">whatsThis</a>(), <a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a>(), and <a href="qtreewidgetitem.html#setToolTip">setToolTip</a>().</p>
<!-- @@@setWhatsThis -->
<!-- $$$sizeHint[overload1]$$$sizeHintint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QTreeWidgetItem::<span class="name">sizeHint</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the size hint set for the tree item in the given <i>column</i> (see <a href="qsize.html">QSize</a>).</p>
<p>This function was introduced in Qt 4.1.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setSizeHint">setSizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$sortChildren[overload1]$$$sortChildrenintQt::SortOrder -->
<h3 class="fn"><a name="sortChildren"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">sortChildren</span> ( <span class="type">int</span> <i>column</i>, <span class="type"><a href="qt.html#SortOrder-enum">Qt::SortOrder</a></span> <i>order</i> )</h3>
<p>Sorts the children of the item using the given <i>order</i>, by the values in the given <i>column</i>.</p>
<p><b>Note:</b> This function does nothing if the item is not associated with a <a href="qtreewidget.html">QTreeWidget</a>.</p>
<p>This function was introduced in Qt 4.2.</p>
<!-- @@@sortChildren -->
<!-- $$$statusTip[overload1]$$$statusTipint -->
<h3 class="fn"><a name="statusTip"></a><span class="type"><a href="qstring.html">QString</a></span> QTreeWidgetItem::<span class="name">statusTip</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the status tip for the contents of the given <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setStatusTip">setStatusTip</a>().</p>
<!-- @@@statusTip -->
<!-- $$$takeChild[overload1]$$$takeChildint -->
<h3 class="fn"><a name="takeChild"></a><span class="type">QTreeWidgetItem</span> * QTreeWidgetItem::<span class="name">takeChild</span> ( <span class="type">int</span> <i>index</i> )</h3>
<p>Removes the item at <i>index</i> and returns it, otherwise return 0.</p>
<!-- @@@takeChild -->
<!-- $$$takeChildren[overload1]$$$takeChildren -->
<h3 class="fn"><a name="takeChildren"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type">QTreeWidgetItem</span> *&gt; QTreeWidgetItem::<span class="name">takeChildren</span> ()</h3>
<p>Removes the list of children and returns it, otherwise returns an empty list.</p>
<p>This function was introduced in Qt 4.1.</p>
<!-- @@@takeChildren -->
<!-- $$$text[overload1]$$$textint -->
<h3 class="fn"><a name="text"></a><span class="type"><a href="qstring.html">QString</a></span> QTreeWidgetItem::<span class="name">text</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the text in the specified <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setText">setText</a>().</p>
<!-- @@@text -->
<!-- $$$textAlignment[overload1]$$$textAlignmentint -->
<h3 class="fn"><a name="textAlignment"></a><span class="type">int</span> QTreeWidgetItem::<span class="name">textAlignment</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the text alignment for the label in the given <i>column</i> (see <a href="qt.html#AlignmentFlag-enum">Qt::AlignmentFlag</a>).</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setTextAlignment">setTextAlignment</a>().</p>
<!-- @@@textAlignment -->
<!-- $$$toolTip[overload1]$$$toolTipint -->
<h3 class="fn"><a name="toolTip"></a><span class="type"><a href="qstring.html">QString</a></span> QTreeWidgetItem::<span class="name">toolTip</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the tool tip for the given <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setToolTip">setToolTip</a>().</p>
<!-- @@@toolTip -->
<!-- $$$treeWidget[overload1]$$$treeWidget -->
<h3 class="fn"><a name="treeWidget"></a><span class="type"><a href="qtreewidget.html">QTreeWidget</a></span> * QTreeWidgetItem::<span class="name">treeWidget</span> () const</h3>
<p>Returns the tree widget that contains the item.</p>
<!-- @@@treeWidget -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type">int</span> QTreeWidgetItem::<span class="name">type</span> () const</h3>
<p>Returns the type passed to the <a href="qtreewidgetitem.html">QTreeWidgetItem</a> constructor.</p>
<!-- @@@type -->
<!-- $$$whatsThis[overload1]$$$whatsThisint -->
<h3 class="fn"><a name="whatsThis"></a><span class="type"><a href="qstring.html">QString</a></span> QTreeWidgetItem::<span class="name">whatsThis</span> ( <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns the &quot;What's This?&quot; help for the contents of the given <i>column</i>.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#setWhatsThis">setWhatsThis</a>().</p>
<!-- @@@whatsThis -->
<!-- $$$write[overload1]$$$writeQDataStream& -->
<h3 class="fn"><a name="write"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">write</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>out</i> ) const<tt> [virtual]</tt></h3>
<p>Writes the item to stream <i>out</i>. This only writes data from one single item.</p>
<p><b>See also </b><a href="qtreewidgetitem.html#read">read</a>().</p>
<!-- @@@write -->
<!-- $$$operator<[overload1]$$$operator<constQTreeWidgetItem& -->
<h3 class="fn"><a name="operator-lt"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">operator&lt;</span> ( const <span class="type">QTreeWidgetItem</span> &amp; <i>other</i> ) const<tt> [virtual]</tt></h3>
<p>Returns true if the text in the item is less than the text in the <i>other</i> item, otherwise returns false.</p>
<!-- @@@operator< -->
<!-- $$$operator=[overload1]$$$operator=constQTreeWidgetItem& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QTreeWidgetItem</span> &amp; QTreeWidgetItem::<span class="name">operator=</span> ( const <span class="type">QTreeWidgetItem</span> &amp; <i>other</i> )</h3>
<p>Assigns <i>other</i>'s data and flags to this item. Note that <a href="qtreewidgetitem.html#type">type</a>() and <a href="qtreewidgetitem.html#treeWidget">treeWidget</a>() are not copied.</p>
<p>This function is useful when reimplementing <a href="qtreewidgetitem.html#clone">clone</a>().</p>
<p><b>See also </b><a href="qtreewidgetitem.html#data">data</a>() and <a href="qtreewidgetitem.html#flags">flags</a>().</p>
<!-- @@@operator= -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<$$$operator<<QDataStream&constQTreeWidgetItem& -->
<h3 class="fn"><a name="operator-lt-lt-170"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&lt;&lt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>out</i>, const <span class="type">QTreeWidgetItem</span> &amp; <i>item</i> )</h3>
<p>Writes the tree widget item <i>item</i> to stream <i>out</i>.</p>
<p>This operator uses <a href="qtreewidgetitem.html#write">QTreeWidgetItem::write</a>().</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QDataStream&QTreeWidgetItem& -->
<h3 class="fn"><a name="operator-gt-gt-101"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&gt;&gt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>in</i>, <span class="type">QTreeWidgetItem</span> &amp; <i>item</i> )</h3>
<p>Reads a tree widget item from stream <i>in</i> into <i>item</i>.</p>
<p>This operator uses <a href="qtreewidgetitem.html#read">QTreeWidgetItem::read</a>().</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. 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>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      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>