Sophie

Sophie

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

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" />
<!-- qtreewidget.cpp -->
  <title>QTreeWidgetItem 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 >QTreeWidgetItem</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="#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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QTreeWidgetItem Class</h1>
<!-- $$$QTreeWidgetItem-brief -->
<p>The <a href="qtreewidgetitem.html">QTreeWidgetItem</a> class provides an item for use with the <a href="qtreewidget.html">QTreeWidget</a> convenience class. <a href="#details">More...</a></p>
<!-- @@@QTreeWidgetItem -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QTreeWidgetItem&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr></table></div><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 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="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></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="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-1">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-2">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-3">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-4">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-5">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-6">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-7">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-8">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></div>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><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></div>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="qtreewidgetitem.html#operator-lt-lt">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">operator&gt;&gt;</a></b>(QDataStream &amp;<i>in</i>, QTreeWidgetItem &amp;<i>item</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QTreeWidgetItem-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qtreewidgetitem.html">QTreeWidgetItem</a> 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 <a href="qtreewidgetitem.html">QTreeWidgetItem</a> 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 <a href="qtreewidgetitem.html">QTreeWidgetItem</a> (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"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> <span class="operator">*</span>cities <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> <span class="operator">*</span>osloItem <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> <span class="operator">*</span>planets <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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="../qtcore/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 <a href="qtreewidgetitem.html">QTreeWidgetItem</a> 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" id="ChildIndicatorPolicy-enum"><a name="ChildIndicatorPolicy-enum"></a>enum QTreeWidgetItem::<span class="name">ChildIndicatorPolicy</span></h3>
<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>QTreeWidgetItem::ShowIndicator</code></td><td class="topAlign tblval"><code>0</code></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"><code>QTreeWidgetItem::DontShowIndicator</code></td><td class="topAlign tblval"><code>1</code></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"><code>QTreeWidgetItem::DontShowIndicatorWhenChildless</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The controls for expanding and collapsing will be shown if the item contains children.</td></tr>
</table></div>
<p>This enum was introduced or modified in  Qt 4.3.</p>
<!-- @@@ChildIndicatorPolicy -->
<!-- $$$ItemType$$$Type$$$UserType -->
<h3 class="fn" id="ItemType-enum"><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>
<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>QTreeWidgetItem::Type</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The default type for tree widget items.</td></tr>
<tr><td class="topAlign"><code>QTreeWidgetItem::UserType</code></td><td class="topAlign tblval"><code>1000</code></td><td class="topAlign">The minimum value for custom types. Values below UserType are reserved by Qt.</td></tr>
</table></div>
<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" id="QTreeWidgetItem"><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" id="QTreeWidgetItem-1"><a name="QTreeWidgetItem-1"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span>(const <span class="type"><a href="../qtcore/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" id="QTreeWidgetItem-2"><a name="QTreeWidgetItem-2"></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" id="QTreeWidgetItem-3"><a name="QTreeWidgetItem-3"></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="../qtcore/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" id="QTreeWidgetItem-4"><a name="QTreeWidgetItem-4"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span>(<span class="type"><a href="qtreewidget.html">QTreeWidget</a></span> *<i>parent</i>, <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="QTreeWidgetItem-5"><a name="QTreeWidgetItem-5"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span>(<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="QTreeWidgetItem-6"><a name="QTreeWidgetItem-6"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span>(<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> *<i>parent</i>, const <span class="type"><a href="../qtcore/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" id="QTreeWidgetItem-7"><a name="QTreeWidgetItem-7"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span>(<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> *<i>parent</i>, <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="QTreeWidgetItem-8"><a name="QTreeWidgetItem-8"></a>QTreeWidgetItem::<span class="name">QTreeWidgetItem</span>(const <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="dtor.QTreeWidgetItem"><a name="dtor.QTreeWidgetItem"></a><code>[virtual] </code>QTreeWidgetItem::<span class="name">~QTreeWidgetItem</span>()</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" id="addChild"><a name="addChild"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">addChild</span>(<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="addChildren"><a name="addChildren"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">addChildren</span>(const <span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="background"><a name="background"></a><span class="type"><a href="../qtgui/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" id="checkState"><a name="checkState"></a><span class="type"><a href="../qtcore/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="../qtcore/qt.html#CheckState-enum">Qt::CheckState</a>.</p>
<!-- @@@checkState -->
<!-- $$$child[overload1]$$$childint -->
<h3 class="fn" id="child"><a name="child"></a><span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="childCount"><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" id="childIndicatorPolicy"><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" id="clone"><a name="clone"></a><code>[virtual] </code><span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> *QTreeWidgetItem::<span class="name">clone</span>() const</h3>
<p>Creates a deep copy of the item and of its children.</p>
<!-- @@@clone -->
<!-- $$$columnCount[overload1]$$$columnCount -->
<h3 class="fn" id="columnCount"><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" id="data"><a name="data"></a><code>[virtual] </code><span class="type"><a href="../qtcore/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</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" id="emitDataChanged"><a name="emitDataChanged"></a><code>[protected] </code><span class="type">void</span> QTreeWidgetItem::<span class="name">emitDataChanged</span>()</h3>
<p>Causes the model associated with this item to emit a <a href="../qtcore/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" id="flags"><a name="flags"></a><span class="type"><a href="../qtcore/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="../qtcore/qt.html#ItemFlag-enum">Qt::ItemIsSelectable</a> | <a href="../qtcore/qt.html#ItemFlag-enum">Qt::ItemIsUserCheckable</a> | <a href="../qtcore/qt.html#ItemFlag-enum">Qt::ItemIsEnabled</a> | <a href="../qtcore/qt.html#ItemFlag-enum">Qt::ItemIsDragEnabled</a> | <a href="../qtcore/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" id="font"><a name="font"></a><span class="type"><a href="../qtgui/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" id="foreground"><a name="foreground"></a><span class="type"><a href="../qtgui/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" id="icon"><a name="icon"></a><span class="type"><a href="../qtgui/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" id="indexOfChild"><a name="indexOfChild"></a><span class="type">int</span> QTreeWidgetItem::<span class="name">indexOfChild</span>(<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="insertChild"><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"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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 won't be inserted again.</p>
<!-- @@@insertChild -->
<!-- $$$insertChildren[overload1]$$$insertChildrenintconstQList<QTreeWidgetItem*>& -->
<h3 class="fn" id="insertChildren"><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="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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 won't be inserted.</p>
<p>This function was introduced in  Qt 4.1.</p>
<!-- @@@insertChildren -->
<!-- $$$isDisabled[overload1]$$$isDisabled -->
<h3 class="fn" id="isDisabled"><a name="isDisabled"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isDisabled</span>() const</h3>
<p>Returns <code>true</code> if the item is disabled; otherwise returns <code>false</code>.</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" id="isExpanded"><a name="isExpanded"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isExpanded</span>() const</h3>
<p>Returns <code>true</code> if the item is expanded, otherwise returns <code>false</code>.</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" id="isFirstColumnSpanned"><a name="isFirstColumnSpanned"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isFirstColumnSpanned</span>() const</h3>
<p>Returns <code>true</code> if the item is spanning all the columns in a row; otherwise returns <code>false</code>.</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" id="isHidden"><a name="isHidden"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isHidden</span>() const</h3>
<p>Returns <code>true</code> if the item is hidden, otherwise returns <code>false</code>.</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" id="isSelected"><a name="isSelected"></a><span class="type">bool</span> QTreeWidgetItem::<span class="name">isSelected</span>() const</h3>
<p>Returns <code>true</code> if the item is selected, otherwise returns <code>false</code>.</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" id="parent"><a name="parent"></a><span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="read"><a name="read"></a><code>[virtual] </code><span class="type">void</span> QTreeWidgetItem::<span class="name">read</span>(<span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<i>in</i>)</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" id="removeChild"><a name="removeChild"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">removeChild</span>(<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="setBackground"><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="../qtgui/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" id="setCheckState"><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="../qtcore/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" id="setChildIndicatorPolicy"><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" id="setData"><a name="setData"></a><code>[virtual] </code><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="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>value</i>)</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="../qtcore/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" id="setDisabled"><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" id="setExpanded"><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" id="setFirstColumnSpanned"><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" id="setFlags"><a name="setFlags"></a><span class="type">void</span> QTreeWidgetItem::<span class="name">setFlags</span>(<span class="type"><a href="../qtcore/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" id="setFont"><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="../qtgui/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" id="setForeground"><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="../qtgui/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" id="setHidden"><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><b>Note: </b>A call to this function has no effect if the item is not currently in a view. In particular, calling <code>setHidden(true)</code> on an item and only then adding it to a view will result in a visible 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" id="setIcon"><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="../qtgui/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" id="setSelected"><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" id="setSizeHint"><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="../qtcore/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" id="setStatusTip"><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="../qtcore/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" id="setText"><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="../qtcore/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" id="setTextAlignment"><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="../qtcore/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" id="setToolTip"><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="../qtcore/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" id="setWhatsThis"><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="../qtcore/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" id="sizeHint"><a name="sizeHint"></a><span class="type"><a href="../qtcore/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="../qtcore/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" id="sortChildren"><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="../qtcore/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" id="statusTip"><a name="statusTip"></a><span class="type"><a href="../qtcore/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" id="takeChild"><a name="takeChild"></a><span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="takeChildren"><a name="takeChildren"></a><span class="type"><a href="../qtcore/qlist.html">QList</a></span>&lt;<span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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" id="text"><a name="text"></a><span class="type"><a href="../qtcore/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" id="textAlignment"><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="../qtcore/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" id="toolTip"><a name="toolTip"></a><span class="type"><a href="../qtcore/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" id="treeWidget"><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" id="type"><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" id="whatsThis"><a name="whatsThis"></a><span class="type"><a href="../qtcore/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" id="write"><a name="write"></a><code>[virtual] </code><span class="type">void</span> QTreeWidgetItem::<span class="name">write</span>(<span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<i>out</i>) const</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" id="operator-lt"><a name="operator-lt"></a><code>[virtual] </code><span class="type">bool</span> QTreeWidgetItem::<span class="name">operator&lt;</span>(const <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> &amp;<i>other</i>) const</h3>
<p>Returns <code>true</code> if the text in the item is less than the text in the <i>other</i> item, otherwise returns <code>false</code>.</p>
<!-- @@@operator< -->
<!-- $$$operator=[overload1]$$$operator=constQTreeWidgetItem& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></span> &amp;QTreeWidgetItem::<span class="name">operator=</span>(const <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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<<[overload1]$$$operator<<QDataStream&constQTreeWidgetItem& -->
<h3 class="fn" id="operator-lt-lt"><a name="operator-lt-lt"></a><span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&lt;&lt;</span>(<span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<i>out</i>, const <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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="../qtcore/datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>[overload1]$$$operator>>QDataStream&QTreeWidgetItem& -->
<h3 class="fn" id="operator-gt-gt"><a name="operator-gt-gt"></a><span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&gt;&gt;</span>(<span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<i>in</i>, <span class="type"><a href="qtreewidgetitem.html#QTreeWidgetItem">QTreeWidgetItem</a></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="../qtcore/datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</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>