PythonQt.QtGui.QTreeWidget · declarations 003
Back to PythonQt.QtGui.QTreeWidget
scrollToItem
scrollToItem(item: Any, hint: Any) -> None
X.scrollToItem(item, hint)
Supplemental documentation: Qt 5 reference:
[slot] void QTreeWidget::scrollToItem(const QTreeWidgetItem *item, QAbstractItemView::ScrollHint hint \= EnsureVisible)
Ensures that the item is visible, scrolling the view if necessary using the specified hint.
See also currentItem(), itemAt(), and topLevelItem().
Upstream PySide2 reference signatures (binding differences may apply):
scrollToItem(self, item: PySide2.QtWidgets.QTreeWidgetItem, hint: PySide2.QtWidgets.QAbstractItemView.ScrollHint=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#scrollToItem
selectedItems
selectedItems() -> tuple
X.selectedItems() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QTreeWidgetItem *> QTreeWidget::selectedItems() const
Returns a list of all selected non-hidden items.
See also itemSelectionChanged().
Upstream PySide2 reference signatures (binding differences may apply):
selectedItems(self) -> typing.List[PySide2.QtWidgets.QTreeWidgetItem]
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#selectedItems
setAllColumnsShowFocus
setAllColumnsShowFocus(enable: Any) -> Any
X.setAllColumnsShowFocus(enable)
setAnimated
setAnimated(enable: Any) -> Any
X.setAnimated(enable)
setAutoExpandDelay
setAutoExpandDelay(delay: Any) -> Any
X.setAutoExpandDelay(delay)
setColumnCount
setColumnCount(columns: int) -> None
X.setColumnCount(columns)
Upstream PySide2 reference signatures (binding differences may apply):
setColumnCount(self, columns: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setColumnCount
setCurrentItem
setCurrentItem(item: Any, column: Any, command: Any) -> None
X.setCurrentItem(item, column, command)
Supplemental documentation: Qt 5 reference:
void QTreeWidget::setCurrentItem(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 QTreeWidget::setCurrentItem(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 QTreeWidget::setCurrentItem(QTreeWidgetItem *item, int column, QItemSelectionModel::SelectionFlags 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().
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentItem(self, item: PySide2.QtWidgets.QTreeWidgetItem) -> None
setCurrentItem(self, item: PySide2.QtWidgets.QTreeWidgetItem, column: int) -> None
setCurrentItem(self, item: PySide2.QtWidgets.QTreeWidgetItem, column: int, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setCurrentItem
setExpanded
setExpanded(index: Any, expand: Any) -> Any
X.setExpanded(index, expand)
setExpandsOnDoubleClick
setExpandsOnDoubleClick(enable: Any) -> Any
X.setExpandsOnDoubleClick(enable)
setFirstColumnSpanned
setFirstColumnSpanned(row: Any, parent: Any, span: Any) -> Any
X.setFirstColumnSpanned(row, parent, span)
setFirstItemColumnSpanned
setFirstItemColumnSpanned(item: Any, span: bool) -> None
X.setFirstItemColumnSpanned(item, span)
Upstream PySide2 reference signatures (binding differences may apply):
setFirstItemColumnSpanned(self, item: PySide2.QtWidgets.QTreeWidgetItem, span: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setFirstItemColumnSpanned
setHeader
setHeader(header: Any) -> Any
X.setHeader(header)
setHeaderHidden
setHeaderHidden(hide: Any) -> Any
X.setHeaderHidden(hide)
setHeaderItem
setHeaderItem(item: Any) -> None
X.setHeaderItem(item)
Supplemental documentation: Qt 5 reference:
void QTreeWidget::setHeaderItem(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().
Upstream PySide2 reference signatures (binding differences may apply):
setHeaderItem(self, item: PySide2.QtWidgets.QTreeWidgetItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setHeaderItem
setHeaderLabel
setHeaderLabel(label: str) -> None
X.setHeaderLabel(label)
Supplemental documentation: Qt 5 reference:
void QTreeWidget::setHeaderLabel(const QString \&label)
Same as setHeaderLabels(QStringList(label)).
This function was introduced in Qt 4.2.
Upstream PySide2 reference signatures (binding differences may apply):
setHeaderLabel(self, label: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setHeaderLabel
setHeaderLabels
setHeaderLabels(labels: Any) -> None
X.setHeaderLabels(labels)
Supplemental documentation: Qt 5 reference:
void QTreeWidget::setHeaderLabels(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().
Upstream PySide2 reference signatures (binding differences may apply):
setHeaderLabels(self, labels: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setHeaderLabels
setIndentation
setIndentation(i: Any) -> Any
X.setIndentation(i)
setItemWidget
setItemWidget(item: Any, column: int, widget: Any) -> None
X.setItemWidget(item, column, widget)
Supplemental documentation: Qt 5 reference:
void QTreeWidget::setItemWidget(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 QStyledItemDelegate 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.
Upstream PySide2 reference signatures (binding differences may apply):
setItemWidget(self, item: PySide2.QtWidgets.QTreeWidgetItem, column: int, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setItemWidget
setItemsExpandable
setItemsExpandable(enable: Any) -> Any
X.setItemsExpandable(enable)
setModel
setModel(model: Any) -> None
X.setModel(model)
Upstream PySide2 reference signatures (binding differences may apply):
setModel(self, model: PySide2.QtCore.QAbstractItemModel) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setModel
setRootIsDecorated
setRootIsDecorated(show: Any) -> Any
X.setRootIsDecorated(show)
setRowHidden
setRowHidden(row: Any, parent: Any, hide: Any) -> Any
X.setRowHidden(row, parent, hide)
setSelectionModel
setSelectionModel(selectionModel: Any) -> None
X.setSelectionModel(selectionModel)
Supplemental documentation: Qt 5 reference:
[override virtual] void QTreeWidget::setSelectionModel(QItemSelectionModel *selectionModel)
Reimplements: QTreeView::setSelectionModel(QItemSelectionModel *selectionModel).
Upstream PySide2 reference signatures (binding differences may apply):
setSelectionModel(self, selectionModel: PySide2.QtCore.QItemSelectionModel) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#setSelectionModel
setSortingEnabled
setSortingEnabled(enable: Any) -> Any
X.setSortingEnabled(enable)
setTreePosition
setTreePosition(logicalIndex: Any) -> Any
X.setTreePosition(logicalIndex)
setUniformRowHeights
setUniformRowHeights(uniform: Any) -> Any
X.setUniformRowHeights(uniform)
sortColumn
sortColumn() -> int
X.sortColumn() -> int
Supplemental documentation: Qt 5 reference:
int QTreeWidget::sortColumn() const
Returns the column used to sort the contents of the widget.
This function was introduced in Qt 4.1.
See also sortItems().
Upstream PySide2 reference signatures (binding differences may apply):
sortColumn(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#sortColumn
sortItems
sortItems(column: int, order: Any) -> None
X.sortItems(column, order)
Supplemental documentation: Qt 5 reference:
void QTreeWidget::sortItems(int column, Qt::SortOrder order)
Sorts the items in the widget in the specified order by the values in the given column.
See also sortColumn().
Upstream PySide2 reference signatures (binding differences may apply):
sortItems(self, column: int, order: PySide2.QtCore.Qt.SortOrder) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#sortItems
supportedDropActions
supportedDropActions() -> Any
X.supportedDropActions()
Supplemental documentation: Qt 5 reference:
[virtual protected] Qt::DropActions QTreeWidget::supportedDropActions() const
Returns the drop actions supported by this view.
See also Qt::DropActions.
Upstream PySide2 reference signatures (binding differences may apply):
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#supportedDropActions
takeTopLevelItem
takeTopLevelItem(index: int) -> Any
X.takeTopLevelItem(index) -> PythonQt.QtGui.QTreeWidgetItem
Supplemental documentation: Qt 5 reference:
QTreeWidgetItem *QTreeWidget::takeTopLevelItem(int index)
Removes the top-level item at the given index in the tree and returns it, otherwise
returns nullptr;
See also insertTopLevelItem(), topLevelItem(), and topLevelItemCount().
Upstream PySide2 reference signatures (binding differences may apply):
takeTopLevelItem(self, index: int) -> PySide2.QtWidgets.QTreeWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#takeTopLevelItem
topLevelItem
topLevelItem(index: int) -> Any
X.topLevelItem(index) -> PythonQt.QtGui.QTreeWidgetItem
Supplemental documentation: Qt 5 reference:
QTreeWidgetItem *QTreeWidget::topLevelItem(int index) const
Returns the top level item at the given index, or nullptr if the item does not
exist.
See also topLevelItemCount() and insertTopLevelItem().
Upstream PySide2 reference signatures (binding differences may apply):
topLevelItem(self, index: int) -> PySide2.QtWidgets.QTreeWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#topLevelItem
topLevelItemCount
instance-attribute
topLevelItemCount: int
Qt 5 reference:
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().
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#topLevelItemCount
treePosition
treePosition() -> int
X.treePosition() -> int
uniformRowHeights
instance-attribute
uniformRowHeights: Any
viewportEntered
viewportEntered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTreeWidget.viewportEntered; argument details are not documented.
visualItemRect
visualItemRect(item: Any) -> Any
X.visualItemRect(item) -> PythonQt.QtCore.QRect
Supplemental documentation: Qt 5 reference:
QRect QTreeWidget::visualItemRect(const QTreeWidgetItem *item) const
Returns the rectangle on the viewport occupied by the item at item.
See also itemAt().
Upstream PySide2 reference signatures (binding differences may apply):
visualItemRect(self, item: PySide2.QtWidgets.QTreeWidgetItem) -> PySide2.QtCore.QRect
Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#visualItemRect
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTreeWidget.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTreeWidget.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTreeWidget.windowTitleChanged; argument details are not documented.