Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2432

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QTreeWidgetItem" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; class provides an item for use with the &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt; convenience class.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; class is a convenience class that replaces the QListViewItem class in Qt 3. It provides an item for use with the &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt; class.&lt;/p&gt;
&lt;p&gt;Items are usually constructed with a parent that is either a &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt; (for top-level items) or a &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; (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:&lt;/p&gt;
&lt;pre&gt;        QTreeWidgetItem *cities = new QTreeWidgetItem(treeWidget);
        cities-&amp;gt;setText(0, tr(&amp;quot;Cities&amp;quot;));
        QTreeWidgetItem *osloItem = new QTreeWidgetItem(cities);
        osloItem-&amp;gt;setText(0, tr(&amp;quot;Oslo&amp;quot;));
        osloItem-&amp;gt;setText(1, tr(&amp;quot;Yes&amp;quot;));&lt;/pre&gt;
&lt;p&gt;Items can be added in a particular order by specifying the item they follow when they are constructed:&lt;/p&gt;
&lt;pre&gt;        QTreeWidgetItem *planets = new QTreeWidgetItem(treeWidget, cities);
        planets-&amp;gt;setText(0, tr(&amp;quot;Planets&amp;quot;));&lt;/pre&gt;
&lt;p&gt;Each column in an item can have its own background brush which is set with the &lt;a href=&quot;QTreeWidgetItem.html#setBackground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackground&lt;/tt&gt;&lt;/a&gt; function. The current background brush can be found with &lt;a href=&quot;QTreeWidgetItem.html#background(int)&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt;. The text label for each column can be rendered with its own font and brush. These are specified with the &lt;a href=&quot;QTreeWidgetItem.html#setFont(int, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTreeWidgetItem.html#setForeground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForeground&lt;/tt&gt;&lt;/a&gt; functions, and read with &lt;a href=&quot;QTreeWidgetItem.html#font(int)&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTreeWidgetItem.html#foreground(int)&quot;&gt;&lt;tt&gt;foreground&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The main difference between top-level items and those in lower levels of the tree is that a top-level item has no &lt;a href=&quot;QTreeWidgetItem.html#parent()&quot;&gt;&lt;tt&gt;parent&lt;/tt&gt;&lt;/a&gt;. 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 &lt;a href=&quot;QTreeWidgetItem.html#takeChild(int)&quot;&gt;&lt;tt&gt;takeChild&lt;/tt&gt;&lt;/a&gt; and inserted at a given index in the list of children with the &lt;a href=&quot;QTreeWidgetItem.html#insertChild(int, com.trolltech.qt.gui.QTreeWidgetItem)&quot;&gt;&lt;tt&gt;insertChild&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;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 &lt;a href=&quot;QTreeWidgetItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)&quot;&gt;&lt;tt&gt;setFlags&lt;/tt&gt;&lt;/a&gt; with the appropriate value (see &lt;tt&gt;Qt::ItemFlags&lt;/tt&gt;). Checkable items can be checked and unchecked with the &lt;a href=&quot;QTreeWidgetItem.html#setCheckState(int, com.trolltech.qt.core.Qt.CheckState)&quot;&gt;&lt;tt&gt;setCheckState&lt;/tt&gt;&lt;/a&gt; function. The corresponding &lt;a href=&quot;QTreeWidgetItem.html#checkState(int)&quot;&gt;&lt;tt&gt;checkState&lt;/tt&gt;&lt;/a&gt; function indicates whether the item is currently checked.&lt;/p&gt;
&lt;a name=&quot;subclassing&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Subclassing&lt;/h3&gt;
&lt;p&gt;When subclassing &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; 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 &lt;a href=&quot;QTreeWidgetItem.html#ItemType-enum&quot;&gt;&lt;tt&gt;UserType&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/model-view-programming.html&quot;&gt;Model/View Programming&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QListWidgetItem.html&quot;&gt;&lt;tt&gt;QListWidgetItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTableWidgetItem.html&quot;&gt;&lt;tt&gt;QTableWidgetItem&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTreeWidgetItem(java.util.List&lt;java.lang.String&gt; strings, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item of the specified &lt;tt&gt;type&lt;/tt&gt;. The item must be inserted into a tree widget. The given list of &lt;tt&gt;strings&lt;/tt&gt; will be set as the item text for each column in the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(java.util.List&lt;java.lang.String&gt; strings)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;strings&lt;/tt&gt;, Type). */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget view, java.util.List&lt;java.lang.String&gt; strings, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item of the specified &lt;tt&gt;type&lt;/tt&gt; and appends it to the items in the given &lt;tt&gt;view&lt;/tt&gt;. The given list of &lt;tt&gt;strings&lt;/tt&gt; will be set as the item text for each column in the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget view, java.util.List&lt;java.lang.String&gt; strings)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;view&lt;/tt&gt;, &lt;tt&gt;strings&lt;/tt&gt;, Type). */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidgetItem parent, java.util.List&lt;java.lang.String&gt; strings, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item and append it to the given &lt;tt&gt;parent&lt;/tt&gt;. The given list of &lt;tt&gt;strings&lt;/tt&gt; will be set as the item text for each column in the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidgetItem parent, java.util.List&lt;java.lang.String&gt; strings)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;strings&lt;/tt&gt;, Type). */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget view, com.trolltech.qt.gui.QTreeWidgetItem after, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item of the specified &lt;tt&gt;type&lt;/tt&gt; and inserts it into the given &lt;tt&gt;view&lt;/tt&gt; after the &lt;tt&gt;after&lt;/tt&gt; item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget view, com.trolltech.qt.gui.QTreeWidgetItem after)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;view&lt;/tt&gt;, &lt;tt&gt;after&lt;/tt&gt;, Type). */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidgetItem parent, com.trolltech.qt.gui.QTreeWidgetItem after, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item of the specified &lt;tt&gt;type&lt;/tt&gt; that is inserted into the &lt;tt&gt;parent&lt;/tt&gt; after the &lt;tt&gt;after&lt;/tt&gt; child item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidgetItem parent, com.trolltech.qt.gui.QTreeWidgetItem after)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, &lt;tt&gt;after&lt;/tt&gt;, Type). */"/>
    <method name="public QTreeWidgetItem(int type)" doc="/**
&lt;p&gt;Constructs a tree widget item of the specified &lt;tt&gt;type&lt;/tt&gt;. The item must be inserted into a tree widget.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(Type). */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidgetItem parent, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item and append it to the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidgetItem parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, Type). */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget view, int type)" doc="/**
&lt;p&gt;Constructs a tree widget item of the specified &lt;tt&gt;type&lt;/tt&gt; and appends it to the items in the given &lt;tt&gt;view&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget view)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;view&lt;/tt&gt;, Type). */"/>
    <method name="public final void addChild(com.trolltech.qt.gui.QTreeWidgetItem child)" doc="/**
&lt;p&gt;Appends the &lt;tt&gt;child&lt;/tt&gt; item to the list of children.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#insertChild(int, com.trolltech.qt.gui.QTreeWidgetItem)&quot;&gt;&lt;tt&gt;insertChild&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#takeChild(int)&quot;&gt;&lt;tt&gt;takeChild&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addChildren(java.util.List&lt;com.trolltech.qt.gui.QTreeWidgetItem&gt; children)" doc="/**
&lt;p&gt;Appends the given list of &lt;tt&gt;children&lt;/tt&gt; to the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#insertChildren(int, java.util.List&lt;com.trolltech.qt.gui.QTreeWidgetItem&gt;)&quot;&gt;&lt;tt&gt;insertChildren&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#takeChildren()&quot;&gt;&lt;tt&gt;takeChildren&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush background(int column)" doc="/**
&lt;p&gt;Returns the brush used to render the background of the specified &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setBackground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackground&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#foreground(int)&quot;&gt;&lt;tt&gt;foreground&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.CheckState checkState(int column)" doc="/**
&lt;p&gt;Returns the check state of the label in the given &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setCheckState(int, com.trolltech.qt.core.Qt.CheckState)&quot;&gt;&lt;tt&gt;setCheckState&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::CheckState&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTreeWidgetItem child(int index)" doc="/**
&lt;p&gt;Returns the item at the given &lt;tt&gt;index&lt;/tt&gt; in the list of the item's children.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#parent()&quot;&gt;&lt;tt&gt;parent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int childCount()" doc="/**
&lt;p&gt;Returns the number of child items.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTreeWidgetItem.ChildIndicatorPolicy childIndicatorPolicy()" doc="/**
&lt;p&gt;Returns the item indicator policy. This policy decides when the tree branch expand/collapse indicator is shown.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setChildIndicatorPolicy(com.trolltech.qt.gui.QTreeWidgetItem.ChildIndicatorPolicy)&quot;&gt;&lt;tt&gt;setChildIndicatorPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int columnCount()" doc="/**
&lt;p&gt;Returns the number of columns in the item.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.ItemFlags flags()" doc="/**
&lt;p&gt;Returns the flags used to describe the item. These determine whether the item can be checked, edited, and selected.&lt;/p&gt;
&lt;p&gt;The default value for flags is Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled. If the item was constructed with a parent, flags will in addition contain Qt::ItemIsDropEnabled.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)&quot;&gt;&lt;tt&gt;setFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont font(int column)" doc="/**
&lt;p&gt;Returns the font used to render the text in the specified &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setFont(int, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBrush foreground(int column)" doc="/**
&lt;p&gt;Returns the brush used to render the foreground (e.g&amp;#x2e; text) of the specified &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setForeground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForeground&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#background(int)&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QIcon icon(int column)" doc="/**
&lt;p&gt;Returns the icon that is displayed in the specified &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setIcon(int, com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;iconSize&lt;/tt&gt; */"/>
    <method name="public final int indexOfChild(com.trolltech.qt.gui.QTreeWidgetItem child)" doc="/**
&lt;p&gt;Returns the index of the given &lt;tt&gt;child&lt;/tt&gt; in the item's list of children.&lt;/p&gt;
 */"/>
    <method name="public final void insertChild(int index, com.trolltech.qt.gui.QTreeWidgetItem child)" doc="/**
&lt;p&gt;Inserts the &lt;tt&gt;child&lt;/tt&gt; item at &lt;tt&gt;index&lt;/tt&gt; in the list of children.&lt;/p&gt;
&lt;p&gt;If the child has already been inserted somewhere else it wont be inserted again.&lt;/p&gt;
 */"/>
    <method name="public final void insertChildren(int index, java.util.List&lt;com.trolltech.qt.gui.QTreeWidgetItem&gt; children)" doc="/**
&lt;p&gt;Inserts the given list of &lt;tt&gt;children&lt;/tt&gt; into the list of the item children at &lt;tt&gt;index&lt;/tt&gt; .&lt;/p&gt;
&lt;p&gt;Children that have already been inserted somewhere else wont be inserted.&lt;/p&gt;
 */"/>
    <method name="public final boolean isDisabled()" doc="/**
&lt;p&gt;Returns true if the item is disabled; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)&quot;&gt;&lt;tt&gt;setFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isExpanded()" doc="/**
&lt;p&gt;Returns true if the item is expanded, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setExpanded(boolean)&quot;&gt;&lt;tt&gt;setExpanded&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isFirstColumnSpanned()" doc="/**
&lt;p&gt;Returns true if the item is spanning all the columns in a row; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setFirstColumnSpanned(boolean)&quot;&gt;&lt;tt&gt;setFirstColumnSpanned&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isHidden()" doc="/**
&lt;p&gt;Returns true if the item is hidden, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setHidden(boolean)&quot;&gt;&lt;tt&gt;setHidden&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isSelected()" doc="/**
&lt;p&gt;Returns true if the item is selected, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setSelected(boolean)&quot;&gt;&lt;tt&gt;setSelected&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream out)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream in)"/>
    <method name="public final com.trolltech.qt.gui.QTreeWidgetItem parent()" doc="/**
&lt;p&gt;Returns the item's parent.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#child(int)&quot;&gt;&lt;tt&gt;child&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeChild(com.trolltech.qt.gui.QTreeWidgetItem child)" doc="/**
&lt;p&gt;Removes the given item indicated by &lt;tt&gt;child&lt;/tt&gt;. The removed item will not be deleted.&lt;/p&gt;
 */"/>
    <method name="public final void setBackground(int column, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the background brush of the label in the given &lt;tt&gt;column&lt;/tt&gt; to the specified &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#background(int)&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setForeground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForeground&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCheckState(int column, com.trolltech.qt.core.Qt.CheckState state)" doc="/**
&lt;p&gt;Sets the item in the given &lt;tt&gt;column&lt;/tt&gt; check state to be &lt;tt&gt;state&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#checkState(int)&quot;&gt;&lt;tt&gt;checkState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setChildIndicatorPolicy(com.trolltech.qt.gui.QTreeWidgetItem.ChildIndicatorPolicy policy)" doc="/**
&lt;p&gt;Sets the item indicator &lt;tt&gt;policy&lt;/tt&gt;. This policy decides when the tree branch expand/collapse indicator is shown. The default value is ShowForChildren.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#childIndicatorPolicy()&quot;&gt;&lt;tt&gt;childIndicatorPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDisabled(boolean disabled)" doc="/**
&lt;p&gt;Disables the item if &lt;tt&gt;disabled&lt;/tt&gt; is true; otherwise enables the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#isDisabled()&quot;&gt;&lt;tt&gt;isDisabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)&quot;&gt;&lt;tt&gt;setFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setExpanded(boolean expand)" doc="/**
&lt;p&gt;Expands the item if &lt;tt&gt;expand&lt;/tt&gt; is true, otherwise collapses the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#isExpanded()&quot;&gt;&lt;tt&gt;isExpanded&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFirstColumnSpanned(boolean span)" doc="/**
&lt;p&gt;Sets the first section to span all columns if &lt;tt&gt;span&lt;/tt&gt; is true; otherwise all item sections are shown.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#isFirstColumnSpanned()&quot;&gt;&lt;tt&gt;isFirstColumnSpanned&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFlags(com.trolltech.qt.core.Qt.ItemFlags flags)" doc="/**
&lt;p&gt;Sets the flags for the item to the given &lt;tt&gt;flags&lt;/tt&gt;. These determine whether the item can be selected or modified. This is often used to disable an item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#flags()&quot;&gt;&lt;tt&gt;flags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(int column, com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Sets the font used to display the text in the given &lt;tt&gt;column&lt;/tt&gt; to the given &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#font(int)&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setText(int, java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setForeground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForeground&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setForeground(int column, com.trolltech.qt.gui.QBrush brush)" doc="/**
&lt;p&gt;Sets the foreground brush of the label in the given &lt;tt&gt;column&lt;/tt&gt; to the specified &lt;tt&gt;brush&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#foreground(int)&quot;&gt;&lt;tt&gt;foreground&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setBackground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackground&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHidden(boolean hide)" doc="/**
&lt;p&gt;Hides the item if &lt;tt&gt;hide&lt;/tt&gt; is true, otherwise shows the item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#isHidden()&quot;&gt;&lt;tt&gt;isHidden&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIcon(int column, com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the icon to be displayed in the given &lt;tt&gt;column&lt;/tt&gt; to &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#icon(int)&quot;&gt;&lt;tt&gt;icon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setText(int, java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;iconSize&lt;/tt&gt; */"/>
    <method name="public final void setSelected(boolean select)" doc="/**
&lt;p&gt;Sets the selected state of the item to &lt;tt&gt;select&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#isSelected()&quot;&gt;&lt;tt&gt;isSelected&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSizeHint(int column, com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Sets the size hint for the tree item in the given &lt;tt&gt;column&lt;/tt&gt; to be &lt;tt&gt;size&lt;/tt&gt;. If no size hint is set, the item delegate will compute the size hint based on the item data.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#sizeHint(int)&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStatusTip(int column, java.lang.String statusTip)" doc="/**
&lt;p&gt;Sets the status tip for the given &lt;tt&gt;column&lt;/tt&gt; to the given &lt;tt&gt;statusTip&lt;/tt&gt;. &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt; mouse tracking needs to be enabled for this feature to work.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#statusTip(int)&quot;&gt;&lt;tt&gt;statusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setToolTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setWhatsThis(int, java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(int column, java.lang.String text)" doc="/**
&lt;p&gt;Sets the text to be displayed in the given &lt;tt&gt;column&lt;/tt&gt; to the given &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#text(int)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setFont(int, com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setForeground(int, com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setForeground&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTextAlignment(int column, int alignment)" doc="/**
&lt;p&gt;Sets the text alignment for the label in the given &lt;tt&gt;column&lt;/tt&gt; to the &lt;tt&gt;alignment&lt;/tt&gt; specified (see &lt;tt&gt;Qt::AlignmentFlag&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#textAlignment(int)&quot;&gt;&lt;tt&gt;textAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setToolTip(int column, java.lang.String toolTip)" doc="/**
&lt;p&gt;Sets the tooltip for the given &lt;tt&gt;column&lt;/tt&gt; to &lt;tt&gt;toolTip&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#toolTip(int)&quot;&gt;&lt;tt&gt;toolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setStatusTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setWhatsThis(int, java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWhatsThis(int column, java.lang.String whatsThis)" doc="/**
&lt;p&gt;Sets the &amp;quot;What's This?&amp;quot; help for the given &lt;tt&gt;column&lt;/tt&gt; to &lt;tt&gt;whatsThis&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#whatsThis(int)&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setStatusTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTreeWidgetItem.html#setToolTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize sizeHint(int column)" doc="/**
&lt;p&gt;Returns the size hint set for the tree item in the given &lt;tt&gt;column&lt;/tt&gt; (see &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setSizeHint(int, com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSizeHint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void sortChildren(int column, com.trolltech.qt.core.Qt.SortOrder order)" doc="/**
&lt;p&gt;Sorts the children of the item using the given &lt;tt&gt;order&lt;/tt&gt;, by the values in the given &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String statusTip(int column)" doc="/**
&lt;p&gt;Returns the status tip for the contents of the given &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setStatusTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTreeWidgetItem takeChild(int index)" doc="/**
&lt;p&gt;Removes the item at &lt;tt&gt;index&lt;/tt&gt; and returns it, otherwise return 0.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QTreeWidgetItem&gt; takeChildren()" doc="/**
&lt;p&gt;Removes the list of children and returns it, otherwise returns an empty list.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String text(int column)" doc="/**
&lt;p&gt;Returns the text in the specified &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setText(int, java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int textAlignment(int column)" doc="/**
&lt;p&gt;Returns the text alignment for the label in the given &lt;tt&gt;column&lt;/tt&gt; (see &lt;tt&gt;Qt::AlignmentFlag&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setTextAlignment(int, int)&quot;&gt;&lt;tt&gt;setTextAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toolTip(int column)" doc="/**
&lt;p&gt;Returns the tool tip for the given &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setToolTip(int, java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTreeWidget treeWidget()" doc="/**
&lt;p&gt;Returns the tree widget that contains the item.&lt;/p&gt;
 */"/>
    <method name="public final int type()" doc="/**
&lt;p&gt;Returns the type passed to the &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; constructor.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String whatsThis(int column)" doc="/**
&lt;p&gt;Returns the &amp;quot;What's This?&amp;quot; help for the contents of the given &lt;tt&gt;column&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setWhatsThis(int, java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.gui.QTreeWidgetItem clone()" doc="/**
&lt;p&gt;Creates a deep copy of the item and of its children.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object data(int column, int role)" doc="/**
&lt;p&gt;Returns the value for the item's &lt;tt&gt;column&lt;/tt&gt; and &lt;tt&gt;role&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#setData(int, int, java.lang.Object)&quot;&gt;&lt;tt&gt;setData&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void read(com.trolltech.qt.core.QDataStream in)" doc="/**
&lt;p&gt;Reads the item from stream &lt;tt&gt;in&lt;/tt&gt;. This only reads data into a single item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#write(com.trolltech.qt.core.QDataStream)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void setData(int column, int role, java.lang.Object value)" doc="/**
&lt;p&gt;Sets the value for the item's &lt;tt&gt;column&lt;/tt&gt; and &lt;tt&gt;role&lt;/tt&gt; to the given &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;role&lt;/tt&gt; describes the type of data specified by &lt;tt&gt;value&lt;/tt&gt;, and is defined by the Qt::ItemDataRole enum.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#data(int, int)&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void write(com.trolltech.qt.core.QDataStream out)" doc="/**
&lt;p&gt;Writes the item to stream &lt;tt&gt;out&lt;/tt&gt;. This only writes data from one single item.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#read(com.trolltech.qt.core.QDataStream)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="ItemType" doc="/**
&lt;p&gt;This enum describes the types that are used to describe tree widget items.&lt;/p&gt;
&lt;p&gt;You can define new user types in &lt;a href=&quot;QTreeWidgetItem.html#QTreeWidgetItem(com.trolltech.qt.gui.QTreeWidget, int)&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; subclasses to ensure that custom items are treated specially; for example, when items are sorted.&lt;/p&gt;

@see &lt;a href=&quot;QTreeWidgetItem.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Type" doc="/**
&lt;p&gt;The default type for tree widget items.&lt;/p&gt;
 */"/>
        <enum-value name="UserType" doc="/**
&lt;p&gt;The minimum value for custom types. Values below &lt;a href=&quot;QTreeWidgetItem.html#ItemType-enum&quot;&gt;&lt;tt&gt;UserType&lt;/tt&gt;&lt;/a&gt; are reserved by Qt.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ChildIndicatorPolicy">
        <enum-value name="ShowIndicator" doc="/**
Internal. */"/>
        <enum-value name="DontShowIndicator" doc="/**
Internal. */"/>
        <enum-value name="DontShowIndicatorWhenChildless" doc="/**
Internal. */"/>
</enum>
</class>