QTreeWidget Class The QTreeWidget class provides a tree view that uses a predefined tree model. More...  
 Header:
 #include <QTreeWidget> 


 qmake:
 QT += widgets


 Inherits:
 QTreeView



 List of all members, including inherited members Obsolete members  Properties  
columnCount : int 
topLevelItemCount : const int   11 properties inherited from QTreeView
 16 properties inherited from QAbstractItemView
 3 properties inherited from QAbstractScrollArea
 6 properties inherited from QFrame
 59 properties inherited from QWidget
 1 property inherited from QObject
  Public Functions  
 

QTreeWidget(QWidget *parent = Q_NULLPTR)
 
 

~QTreeWidget()
 
 void 

addTopLevelItem(QTreeWidgetItem *item)
 
 void 

addTopLevelItems(const QList<QTreeWidgetItem *> &items)
 
 void 

closePersistentEditor(QTreeWidgetItem *item, int column = 0)
 
 int 

columnCount() const
 
 int 

currentColumn() const
 
 QTreeWidgetItem *

currentItem() const
 
 void 

editItem(QTreeWidgetItem *item, int column = 0)
 
 QList<QTreeWidgetItem *> 

findItems(const QString &text, Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069MatchFlags flags, int column = 0) const
 
 QTreeWidgetItem *

headerItem() const
 
 int 

indexOfTopLevelItem(QTreeWidgetItem *item) const
 
 void 

insertTopLevelItem(int index, QTreeWidgetItem *item)
 
 void 

insertTopLevelItems(int index, const QList<QTreeWidgetItem *> &items)
 
 QTreeWidgetItem *

invisibleRootItem() const
 
 bool 

isFirstItemColumnSpanned(const QTreeWidgetItem *item) const
 
 QTreeWidgetItem *

itemAbove(const QTreeWidgetItem *item) const
 
 QTreeWidgetItem *

itemAt(const QPoint &p) const
 
 QTreeWidgetItem *

itemAt(int x, int y) const
 
 QTreeWidgetItem *

itemBelow(const QTreeWidgetItem *item) const
 
 QWidget *

itemWidget(QTreeWidgetItem *item, int column) const
 
 void 

openPersistentEditor(QTreeWidgetItem *item, int column = 0)
 
 void 

removeItemWidget(QTreeWidgetItem *item, int column)
 
 QList<QTreeWidgetItem *> 

selectedItems() const
 
 void 

setColumnCount(int columns)
 
 void 

setCurrentItem(QTreeWidgetItem *item)
 
 void 

setCurrentItem(QTreeWidgetItem *item, int column)
 
 void 

setCurrentItem(QTreeWidgetItem *item, int column, QItemSelectionModel8b7c:f320:99b9:690f:4595:cd17:293a:c069SelectionFlags command)
 
 void 

setFirstItemColumnSpanned(const QTreeWidgetItem *item, bool span)
 
 void 

setHeaderItem(QTreeWidgetItem *item)
 
 void 

setHeaderLabel(const QString &label)
 
 void 

setHeaderLabels(const QStringList &labels)
 
 void 

setItemWidget(QTreeWidgetItem *item, int column, QWidget *widget)
 
 int 

sortColumn() const
 
 void 

sortItems(int column, Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069SortOrder order)
 
 QTreeWidgetItem *

takeTopLevelItem(int index)
 
 QTreeWidgetItem *

topLevelItem(int index) const
 
 int 

topLevelItemCount() const
 
 QRect 

visualItemRect(const QTreeWidgetItem *item) const
  Reimplemented Public Functions  
 virtual void 

setSelectionModel(QItemSelectionModel *selectionModel)
   52 public functions inherited from QTreeView
 59 public functions inherited from QAbstractItemView
 20 public functions inherited from QAbstractScrollArea
 14 public functions inherited from QFrame
 214 public functions inherited from QWidget
 32 public functions inherited from QObject
 14 public functions inherited from QPaintDevice
  Public Slots  
 void 

clear()
 
 void 

collapseItem(const QTreeWidgetItem *item)
 
 void 

expandItem(const QTreeWidgetItem *item)
 
 void 

scrollToItem(const QTreeWidgetItem *item, QAbstractItemView8b7c:f320:99b9:690f:4595:cd17:293a:c069ScrollHint hint = EnsureVisible)
   8 public slots inherited from QTreeView
 9 public slots inherited from QAbstractItemView
 19 public slots inherited from QWidget
 1 public slot inherited from QObject
  Signals  
 void 

currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
 
 void 

itemActivated(QTreeWidgetItem *item, int column)
 
 void 

itemChanged(QTreeWidgetItem *item, int column)
 
 void 

itemClicked(QTreeWidgetItem *item, int column)
 
 void 

itemCollapsed(QTreeWidgetItem *item)
 
 void 

itemDoubleClicked(QTreeWidgetItem *item, int column)
 
 void 

itemEntered(QTreeWidgetItem *item, int column)
 
 void 

itemExpanded(QTreeWidgetItem *item)
 
 void 

itemPressed(QTreeWidgetItem *item, int column)
 
 void 

itemSelectionChanged()
   2 signals inherited from QTreeView
 7 signals inherited from QAbstractItemView
 3 signals inherited from QWidget
 2 signals inherited from QObject
  Protected Functions  
 virtual bool 

dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069ropAction action)
 
 QModelIndex 

indexFromItem(const QTreeWidgetItem *item, int column = 0) const
 
 QTreeWidgetItem *

itemFromIndex(const QModelIndex &index) const
 
 virtual QMimeData *

mimeData(const QList<QTreeWidgetItem *> items) const
 
 virtual QStringList 

mimeTypes() const
 
 virtual Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069ropActions 

supportedDropActions() const
  Reimplemented Protected Functions  
 virtual void 

dropEvent(QDropEvent *event)
 
 virtual bool 

event(QEvent *e)
   29 protected functions inherited from QTreeView
 37 protected functions inherited from QAbstractItemView
 20 protected functions inherited from QAbstractScrollArea
 4 protected functions inherited from QFrame
 35 protected functions inherited from QWidget
 9 protected functions inherited from QObject
 1 protected function inherited from QPaintDevice
  Additional Inherited Members  5 static public members inherited from QWidget
 11 static public members inherited from QObject
 4 protected slots inherited from QTreeView
 9 protected slots inherited from QAbstractItemView
 1 protected slot inherited from QWidget
  Detailed Description The QTreeWidget class provides a tree view that uses a predefined tree model. 
The QTreeWidget class is a convenience class that provides a standard tree widget with a classic item-based interface similar to that used by the QListView class in Qt 3. This class is based on Qt's Model/View architecture and uses a default model to hold items, each of which is a QTreeWidgetItem. Developers who do not need the flexibility of the Model/View framework can use this class to create simple hierarchical lists very easily. A more flexible approach involves combining a QTreeView with a standard item model. This allows the storage of data to be separated from its representation. In its simplest form, a tree widget can be constructed in the following way: QTreeWidget *treeWidget = new QTreeWidget();
treeWidget->setColumnCount(1);
QList<QTreeWidgetItem *> items;
for (int i = 0; i < 10; ++i)
    items.append(new QTreeWidgetItem((QTreeWidget*)0, QStringList(QString("item: %1").arg(i))));
treeWidget->insertTopLevelItems(0, items); Before items can be added to the tree widget, the number of columns must be set with setColumnCount(). This allows each item to have one or more labels or other decorations. The number of columns in use can be found with the columnCount() function. The tree can have a header that contains a section for each column in the widget. It is easiest to set up the labels for each section by supplying a list of strings with setHeaderLabels(), but a custom header can be constructed with a QTreeWidgetItem and inserted into the tree with the setHeaderItem() function. The items in the tree can be sorted by column according to a predefined sort order. If sorting is enabled, the user can sort the items by clicking on a column header. Sorting can be enabled or disabled by calling setSortingEnabled(). The isSortingEnabled() function indicates whether sorting is enabled. See also QTreeWidgetItem, QTreeWidgetItemIterator, QTreeView, Model/View Programming, and Settings Editor Example.  Property Documentation 
columnCount : int
 This property holds the number of columns displayed in the tree widget By default, this property has a value of 1. Access functions:  
 int 

columnCount() const
 
 void 

setColumnCount(int columns)
  
topLevelItemCount : const int
 This property holds the number of top-level items By default, this property has a value of 0. Access functions:  
 int 

topLevelItemCount() const
  See also columnCount() and currentItem().  Member Function Documentation 
QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069QTreeWidget(QWidget *parent = Q_NULLPTR) Constructs a tree widget with the given parent. 
QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069~QTreeWidget() Destroys the tree widget and all its items. 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069TopLevelItem(QTreeWidgetItem *item) Appends the item as a top-level item in the widget. This function was introduced in Qt 4.1. See also insertTopLevelItem(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069TopLevelItems(const QList<QTreeWidgetItem *> &items) Appends the list of items as a top-level items in the widget. See also insertTopLevelItems(). 
[slot] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069lear() Clears the tree widget by removing all of its items and selections. Note: Since each item is removed from the tree widget before being deleted, the return value of QTreeWidgetItem8b7c:f320:99b9:690f:4595:cd17:293a:c069treeWidget() will be invalid when called from an item's destructor. See also takeTopLevelItem(), topLevelItemCount(), and columnCount(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069losePersistentEditor(QTreeWidgetItem *item, int column = 0) Closes the persistent editor for the item in the given column. This function has no effect if no persistent editor is open for this combination of item and column. See also openPersistentEditor(). 
[slot] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069ollapseItem(const QTreeWidgetItem *item) Closes the item. This causes the tree containing the item's children to be collapsed. See also expandItem(), currentItem(), itemAt(), and topLevelItem(). 
int QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069urrentColumn() const Returns the current column in the tree widget. This function was introduced in Qt 4.1. See also setCurrentItem() and columnCount(). 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069urrentItem() const Returns the current item in the tree widget. See also setCurrentItem() and currentItemChanged(). 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069urrentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) This signal is emitted when the current item changes. The current item is specified by current, and this replaces the previous current item. See also setCurrentItem(). 
[virtual protected] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069ropEvent(QDropEvent *event) Reimplemented from QWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069ropEvent(). 
[virtual protected] bool QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069ropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069ropAction action) Handles the data supplied by a drag and drop operation that ended with the given action in the index in the given parent item. The default implementation returns true if the drop was successfully handled by decoding the mime data and inserting it into the model; otherwise it returns false. See also supportedDropActions(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itItem(QTreeWidgetItem *item, int column = 0) Starts editing the item in the given column if it is editable. 
[virtual protected] bool QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069vent(QEvent *e) Reimplemented from QObject8b7c:f320:99b9:690f:4595:cd17:293a:c069vent(). 
[slot] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069xpandItem(const QTreeWidgetItem *item) Expands the item. This causes the tree containing the item's children to be expanded. See also collapseItem(), currentItem(), itemAt(), topLevelItem(), and itemExpanded(). 
QList<QTreeWidgetItem *> QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069indItems(const QString &text, Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069MatchFlags flags, int column = 0) const Returns a list of items that match the given text, using the given flags, in the given column. 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069headerItem() const Returns the item used for the tree widget's header. See also setHeaderItem(). 
[protected] QModelIndex QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069indexFromItem(const QTreeWidgetItem *item, int column = 0) const Returns the QModelIndex associated with the given item in the given column. Note: In Qt versions prior to 5.7, this function took a non-const item.
See also itemFromIndex() and topLevelItem(). 
int QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069indexOfTopLevelItem(QTreeWidgetItem *item) const Returns the index of the given top-level item, or -1 if the item cannot be found. See also sortItems() and topLevelItemCount(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069insertTopLevelItem(int index, QTreeWidgetItem *item) Inserts the item at index in the top level in the view. If the item has already been inserted somewhere else it won't be inserted. See also addTopLevelItem() and columnCount(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069insertTopLevelItems(int index, const QList<QTreeWidgetItem *> &items) Inserts the list of items at index in the top level in the view. Items that have already been inserted somewhere else won't be inserted. This function was introduced in Qt 4.1. See also addTopLevelItems(). 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069invisibleRootItem() const Returns the tree widget's invisible root item. The invisible root item provides access to the tree widget's top-level items through the QTreeWidgetItem API, making it possible to write functions that can treat top-level items and their children in a uniform way; for example, recursive functions. This function was introduced in Qt 4.2. 
bool QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069isFirstItemColumnSpanned(const QTreeWidgetItem *item) const Returns true if the given item is set to show only one section over all columns; otherwise returns false. This function was introduced in Qt 4.3. See also setFirstItemColumnSpanned(). 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemAbove(const QTreeWidgetItem *item) const Returns the item above the given item. This function was introduced in Qt 4.3. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemActivated(QTreeWidgetItem *item, int column) This signal is emitted when the user activates an item by single- or double-clicking (depending on the platform, i.e. on the QStyl8b7c:f320:99b9:690f:4595:cd17:293a:c069SH_ItemView_ActivateItemOnSingleClick style hint) or pressing a special key (e.g., Enter). The specified item is the item that was clicked, or 0 if no item was clicked. The column is the item's column that was clicked, or -1 if no item was clicked. 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemAt(const QPoint &p) const Returns a pointer to the item at the coordinates p. The coordinates are relative to the tree widget's viewport(). See also visualItemRect(). 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemAt(int x, int y) const This is an overloaded function. Returns a pointer to the item at the coordinates (x, y). The coordinates are relative to the tree widget's viewport(). 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemBelow(const QTreeWidgetItem *item) const Returns the item visually below the given item. This function was introduced in Qt 4.3. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemChanged(QTreeWidgetItem *item, int column) This signal is emitted when the contents of the column in the specified item changes. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemClicked(QTreeWidgetItem *item, int column) This signal is emitted when the user clicks inside the widget. The specified item is the item that was clicked. The column is the item's column that was clicked. If no item was clicked, no signal will be emitted. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemCollapsed(QTreeWidgetItem *item) This signal is emitted when the specified item is collapsed so that none of its children are displayed. Note: This signal will not be emitted if an item changes its state when collapseAll() is invoked.
See also QTreeWidgetItem8b7c:f320:99b9:690f:4595:cd17:293a:c069isExpanded(), itemExpanded(), and collapseItem(). 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemDoubleClicked(QTreeWidgetItem *item, int column) This signal is emitted when the user double clicks inside the widget. The specified item is the item that was clicked, or 0 if no item was clicked. The column is the item's column that was clicked. If no item was double clicked, no signal will be emitted. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemEntered(QTreeWidgetItem *item, int column) This signal is emitted when the mouse cursor enters an item over the specified column. QTreeWidget mouse tracking needs to be enabled for this feature to work. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemExpanded(QTreeWidgetItem *item) This signal is emitted when the specified item is expanded so that all of its children are displayed. Note: This signal will not be emitted if an item changes its state when expandAll() is invoked.
See also setItemExpanded(), QTreeWidgetItem8b7c:f320:99b9:690f:4595:cd17:293a:c069isExpanded(), itemCollapsed(), and expandItem(). 
[protected] QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemFromIndex(const QModelIndex &index) const Returns a pointer to the QTreeWidgetItem associated with the given index. See also indexFromItem(). 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemPressed(QTreeWidgetItem *item, int column) This signal is emitted when the user presses a mouse button inside the widget. The specified item is the item that was clicked, or 0 if no item was clicked. The column is the item's column that was clicked, or -1 if no item was clicked. 
[signal] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemSelectionChanged() This signal is emitted when the selection changes in the tree widget. The current selection can be found with selectedItems(). 
QWidget *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069itemWidget(QTreeWidgetItem *item, int column) const Returns the widget displayed in the cell specified by item and the given column. This function was introduced in Qt 4.1. See also setItemWidget(). 
[virtual protected] QMimeData *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069mimeData(const QList<QTreeWidgetItem *> items) const Returns an object that contains a serialized description of the specified items. The format used to describe the items is obtained from the mimeTypes() function. If the list of items is empty, 0 is returned rather than a serialized empty list. 
[virtual protected] QStringList QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069mimeTypes() const Returns a list of MIME types that can be used to describe a list of treewidget items. See also mimeData(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069openPersistentEditor(QTreeWidgetItem *item, int column = 0) Opens a persistent editor for the item in the given column. See also closePersistentEditor(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069removeItemWidget(QTreeWidgetItem *item, int column) Removes the widget set in the given item in the given column. This function was introduced in Qt 4.3. 
[slot] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069scrollToItem(const QTreeWidgetItem *item, QAbstractItemView8b7c:f320:99b9:690f:4595:cd17:293a:c069ScrollHint hint = EnsureVisible) Ensures that the item is visible, scrolling the view if necessary using the specified hint. See also currentItem(), itemAt(), and topLevelItem(). 
QList<QTreeWidgetItem *> QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069selectedItems() const Returns a list of all selected non-hidden items. See also itemSelectionChanged(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setCurrentItem(QTreeWidgetItem *item) Sets the current item in the tree widget. Unless the selection mode is NoSelection, the item is also selected. See also currentItem() and currentItemChanged(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setCurrentItem(QTreeWidgetItem *item, int column) Sets the current item in the tree widget and the current column to column. This function was introduced in Qt 4.1. See also currentItem(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setCurrentItem(QTreeWidgetItem *item, int column, QItemSelectionModel8b7c:f320:99b9:690f:4595:cd17:293a:c069SelectionFlags command) Sets the current item in the tree widget and the current column to column, using the given command. This function was introduced in Qt 4.4. See also currentItem(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setFirstItemColumnSpanned(const QTreeWidgetItem *item, bool span) Sets the given item to only show one section for all columns if span is true; otherwise the item will show one section per column. This function was introduced in Qt 4.3. See also isFirstItemColumnSpanned(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setHeaderItem(QTreeWidgetItem *item) Sets the header item for the tree widget. The label for each column in the header is supplied by the corresponding label in the item. The tree widget takes ownership of the item. See also headerItem() and setHeaderLabels(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setHeaderLabel(const QString &label) Same as setHeaderLabels(QStringList(label)). This function was introduced in Qt 4.2. 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setHeaderLabels(const QStringList &labels) Adds a column in the header for each item in the labels list, and sets the label for each column. Note that setHeaderLabels() won't remove existing columns. See also setHeaderItem() and setHeaderLabel(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setItemWidget(QTreeWidgetItem *item, int column, QWidget *widget) Sets the given widget to be displayed in the cell specified by the given item and column. The given widget's autoFillBackground property must be set to true, otherwise the widget's background will be transparent, showing both the model data and the tree widget item. This function should only be used to display static content in the place of a tree widget item. If you want to display custom dynamic content or implement a custom editor widget, use QTreeView and subclass QItemDelegate instead. This function cannot be called before the item hierarchy has been set up, i.e., the QTreeWidgetItem that will hold widget must have been added to the view before widget is set. Note: The tree takes ownership of the widget.
This function was introduced in Qt 4.1. See also itemWidget() and Delegate Classes. 
[virtual] void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069setSelectionModel(QItemSelectionModel *selectionModel) Reimplemented from QAbstractItemView8b7c:f320:99b9:690f:4595:cd17:293a:c069setSelectionModel(). 
int QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069sortColumn() const Returns the column used to sort the contents of the widget. This function was introduced in Qt 4.1. See also sortItems(). 
void QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069sortItems(int column, Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069SortOrder order) Sorts the items in the widget in the specified order by the values in the given column. See also sortColumn(). 
[virtual protected] Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069ropActions QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069supportedDropActions() const Returns the drop actions supported by this view. See also Qt8b7c:f320:99b9:690f:4595:cd17:293a:c069ropActions. 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069takeTopLevelItem(int index) Removes the top-level item at the given index in the tree and returns it, otherwise returns 0; See also insertTopLevelItem(), topLevelItem(), and topLevelItemCount(). 
QTreeWidgetItem *QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069topLevelItem(int index) const Returns the top level item at the given index, or 0 if the item does not exist. See also topLevelItemCount() and insertTopLevelItem(). 
QRect QTreeWidget8b7c:f320:99b9:690f:4595:cd17:293a:c069visualItemRect(const QTreeWidgetItem *item) const Returns the rectangle on the viewport occupied by the harveythomas@example.net. See also itemAt().

    
{'path': 'public/docs/qt~5.9/qtreewidget.html', 'source': 'DevDocs.IO'}