<class name="QTreeWidgetItemIterator" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTreeWidgetItemIterator.html#QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags)&quot;&gt;&lt;tt&gt;QTreeWidgetItemIterator&lt;/tt&gt;&lt;/a&gt; class provides a way to iterate over the items in a &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt; instance.&lt;/p&gt;
&lt;p&gt;The iterator will walk the items in a pre-order traversal order, thus visiting the parent node &lt;i&gt;before&lt;/i&gt; it continues to the child nodes.&lt;/p&gt;
&lt;p&gt;For example, the following code examples each item in a tree, checking the text in the first column against a user-specified search string:&lt;/p&gt;
&lt;pre&gt;        QTreeWidgetItemIterator it(treeWidget);
        while (*it) {
            if ((*it)-&amp;gt;text(0) == itemText)
                treeWidget-&amp;gt;setItemSelected(*it, true);
            ++it;
        }&lt;/pre&gt;
&lt;p&gt;It is also possible to filter out certain types of node by passing certain &lt;a href=&quot;QTreeWidgetItemIterator.html#IteratorFlag-enum&quot;&gt;flags&lt;/tt&gt;&lt;/a&gt; to the constructor of &lt;a href=&quot;QTreeWidgetItemIterator.html#QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags)&quot;&gt;&lt;tt&gt;QTreeWidgetItemIterator&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;QTreeWidgetItem.html&quot;&gt;&lt;tt&gt;QTreeWidgetItem&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItemIterator it)" doc="/**
&lt;p&gt;Constructs an iterator for the same &lt;a href=&quot;QTreeWidget.html&quot;&gt;&lt;tt&gt;QTreeWidget&lt;/tt&gt;&lt;/a&gt; as &lt;tt&gt;it&lt;/tt&gt;. The current iterator item is set to point on the current item of &lt;tt&gt;it&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidget widget, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags flags)" doc="/**
&lt;p&gt;Constructs an iterator for the given &lt;tt&gt;widget&lt;/tt&gt; that uses the specified &lt;tt&gt;flags&lt;/tt&gt; to determine which items are found during iteration. The iterator is set to point to the first top-level item contained in the widget, or the next matching item if the top-level item doesn't match the flags.&lt;/p&gt;

@see &lt;tt&gt;QTreeWidgetItemIterator::IteratorFlag&lt;/tt&gt; */"/>
    <method name="public QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidget widget)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItemIterator.html#QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags)&quot;&gt;&lt;tt&gt;QTreeWidgetItemIterator&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;widget&lt;/tt&gt;, All). */"/>
    <method name="public QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem item, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags flags)" doc="/**
&lt;p&gt;Constructs an iterator for the given &lt;tt&gt;item&lt;/tt&gt; that uses the specified &lt;tt&gt;flags&lt;/tt&gt; to determine which items are found during iteration. The iterator is set to point to &lt;tt&gt;item&lt;/tt&gt;, or the next matching item if &lt;tt&gt;item&lt;/tt&gt; doesn't match the flags.&lt;/p&gt;

@see &lt;tt&gt;QTreeWidgetItemIterator::IteratorFlag&lt;/tt&gt; */"/>
    <method name="public QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem item)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTreeWidgetItemIterator.html#QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags)&quot;&gt;&lt;tt&gt;QTreeWidgetItemIterator&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;item&lt;/tt&gt;, All). */"/>
    <enum name="IteratorFlag" doc="/**
&lt;p&gt;These flags can be passed to a &lt;a href=&quot;QTreeWidgetItemIterator.html#QTreeWidgetItemIterator(com.trolltech.qt.gui.QTreeWidgetItem, com.trolltech.qt.gui.QTreeWidgetItemIterator.IteratorFlags)&quot;&gt;&lt;tt&gt;QTreeWidgetItemIterator&lt;/tt&gt;&lt;/a&gt; constructor (OR-ed together if more than one is used), so that the iterator will only iterate over items that match the given flags.&lt;/p&gt;
 */">
        <enum-value name="All" doc="/**
Internal. */"/>
        <enum-value name="Hidden" doc="/**
Internal. */"/>
        <enum-value name="NotHidden" doc="/**
Internal. */"/>
        <enum-value name="Selected" doc="/**
Internal. */"/>
        <enum-value name="Unselected" doc="/**
Internal. */"/>
        <enum-value name="Selectable" doc="/**
Internal. */"/>
        <enum-value name="NotSelectable" doc="/**
Internal. */"/>
        <enum-value name="DragEnabled" doc="/**
Internal. */"/>
        <enum-value name="DragDisabled" doc="/**
Internal. */"/>
        <enum-value name="DropEnabled" doc="/**
Internal. */"/>
        <enum-value name="DropDisabled" doc="/**
Internal. */"/>
        <enum-value name="HasChildren" doc="/**
Internal. */"/>
        <enum-value name="NoChildren" doc="/**
Internal. */"/>
        <enum-value name="Checked" doc="/**
Internal. */"/>
        <enum-value name="NotChecked" doc="/**
Internal. */"/>
        <enum-value name="Enabled" doc="/**
Internal. */"/>
        <enum-value name="Disabled" doc="/**
Internal. */"/>
        <enum-value name="Editable" doc="/**
Internal. */"/>
        <enum-value name="NotEditable" doc="/**
Internal. */"/>
        <enum-value name="UserFlag" doc="/**
Internal. */"/>
</enum>
</class>
