Skip to content

PythonQt.QtGui.QTreeWidget · declarations 001

Back to PythonQt.QtGui.QTreeWidget

activated

activated(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.activated; argument details are not documented.

addTopLevelItem

addTopLevelItem(item: Any) -> None

X.addTopLevelItem(item)

Supplemental documentation: Qt 5 reference:

void QTreeWidget::addTopLevelItem(QTreeWidgetItem *item)

Appends the item as a top-level item in the widget.

This function was introduced in Qt 4.1.

See also insertTopLevelItem().

Upstream PySide2 reference signatures (binding differences may apply):

addTopLevelItem(self, item: PySide2.QtWidgets.QTreeWidgetItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#addTopLevelItem

addTopLevelItems

addTopLevelItems(items: Any) -> None

X.addTopLevelItems(items)

Supplemental documentation: Qt 5 reference:

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

Appends the list of items as a top-level items in the widget.

See also insertTopLevelItems().

Upstream PySide2 reference signatures (binding differences may apply):

addTopLevelItems(self, items: typing.Sequence[PySide2.QtWidgets.QTreeWidgetItem]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#addTopLevelItems

allColumnsShowFocus instance-attribute

allColumnsShowFocus: Any

animated instance-attribute

animated: Any

autoExpandDelay instance-attribute

autoExpandDelay: Any

clear

clear() -> None

X.clear()

Supplemental documentation: Qt 5 reference:

[slot] void QTreeWidget::clear()

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 QTreeWidgetItem::treeWidget() will be invalid when called from an item's destructor.

See also takeTopLevelItem(), topLevelItemCount(), and columnCount().

Upstream PySide2 reference signatures (binding differences may apply):

clear(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#clear

clicked

clicked(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.clicked; argument details are not documented.

closePersistentEditor

closePersistentEditor(item: Any, column: Any) -> None

X.closePersistentEditor(item, column)

Supplemental documentation: Qt 5 reference:

void QTreeWidget::closePersistentEditor(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() and isPersistentEditorOpen().

Upstream PySide2 reference signatures (binding differences may apply):

closePersistentEditor(self, index: PySide2.QtCore.QModelIndex) -> None
closePersistentEditor(self, item: PySide2.QtWidgets.QTreeWidgetItem, column: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#closePersistentEditor

collapse

collapse(index: Any) -> Any

X.collapse(index)

collapseAll

collapseAll() -> Any

X.collapseAll()

collapseItem

collapseItem(item: Any) -> None

X.collapseItem(item)

Supplemental documentation: Qt 5 reference:

[slot] void QTreeWidget::collapseItem(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().

Upstream PySide2 reference signatures (binding differences may apply):

collapseItem(self, item: PySide2.QtWidgets.QTreeWidgetItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#collapseItem

collapsed

collapsed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.collapsed; argument details are not documented.

columnCount instance-attribute

columnCount: int

Qt 5 reference:

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)

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#columnCount

currentColumn

currentColumn() -> int

X.currentColumn() -> int

Supplemental documentation: Qt 5 reference:

int QTreeWidget::currentColumn() const

Returns the current column in the tree widget.

This function was introduced in Qt 4.1.

See also setCurrentItem() and columnCount().

Upstream PySide2 reference signatures (binding differences may apply):

currentColumn(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#currentColumn

currentItem

currentItem() -> Any

X.currentItem() -> PythonQt.QtGui.QTreeWidgetItem

Supplemental documentation: Qt 5 reference:

QTreeWidgetItem *QTreeWidget::currentItem() const

Returns the current item in the tree widget.

See also setCurrentItem() and currentItemChanged().

Upstream PySide2 reference signatures (binding differences may apply):

currentItem(self) -> PySide2.QtWidgets.QTreeWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#currentItem

currentItemChanged

currentItemChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.currentItemChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTreeWidget::currentItemChanged(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().

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#currentItemChanged

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.destroyed; argument details are not documented.

doubleClicked

doubleClicked(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.doubleClicked; argument details are not documented.

drawBranches

drawBranches(painter: Any, rect: Any, index: Any) -> Any

X.drawBranches(painter, rect, index)

drawRow

drawRow(painter: Any, options: Any, index: Any) -> Any

X.drawRow(painter, options, index)

drawTree

drawTree(painter: Any, region: Any) -> Any

X.drawTree(painter, region)

dropEvent

dropEvent(event: Any) -> None

X.dropEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QTreeWidget::dropEvent(QDropEvent *event)

Reimplements: QAbstractItemView::dropEvent(QDropEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

dropEvent(self, event: PySide2.QtGui.QDropEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#dropEvent

dropMimeData

dropMimeData(parent: Any, index: int, data: Any, action: Any) -> bool

X.dropMimeData(parent, index, data, action) -> bool

Supplemental documentation: Qt 5 reference:

[virtual protected] bool QTreeWidget::dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction 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().

Upstream PySide2 reference signatures (binding differences may apply):

dropMimeData(self, parent: PySide2.QtWidgets.QTreeWidgetItem, index: int, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#dropMimeData

editItem

editItem(item: Any, column: int) -> None

X.editItem(item, column)

Supplemental documentation: Qt 5 reference:

void QTreeWidget::editItem(QTreeWidgetItem *item, int column \= 0)

Starts editing the item in the given column if it is editable.

Upstream PySide2 reference signatures (binding differences may apply):

editItem(self, item: PySide2.QtWidgets.QTreeWidgetItem, column: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#editItem

entered

entered(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.entered; argument details are not documented.

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QTreeWidget::event(QEvent *e)

Reimplements: QAbstractItemView::event(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, e: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#event

expand

expand(index: Any) -> Any

X.expand(index)

expandAll

expandAll() -> Any

X.expandAll()

expandItem

expandItem(item: Any) -> None

X.expandItem(item)

Supplemental documentation: Qt 5 reference:

[slot] void QTreeWidget::expandItem(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().

Upstream PySide2 reference signatures (binding differences may apply):

expandItem(self, item: PySide2.QtWidgets.QTreeWidgetItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#expandItem

expandRecursively

expandRecursively(index: Any, depth: Any) -> Any

X.expandRecursively(index, depth)

expandToDepth

expandToDepth(depth: Any) -> Any

X.expandToDepth(depth)

expanded

expanded(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.expanded; argument details are not documented.

expandsOnDoubleClick instance-attribute

expandsOnDoubleClick: Any

findItems

findItems(text: str, arg1: flags, column: int) -> tuple

X.findItems(text, flags, column) -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QTreeWidgetItem *> QTreeWidget::findItems(const QString \&text, Qt::MatchFlags flags, int column \= 0) const

Returns a list of items that match the given text, using the given flags, in the given column.

Upstream PySide2 reference signatures (binding differences may apply):

findItems(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags, column: int=...) -> typing.List[PySide2.QtWidgets.QTreeWidgetItem]

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#findItems

header

header() -> Any

X.header() -> PythonQt.QtGui.QHeaderView

headerHidden instance-attribute

headerHidden: Any

headerItem

headerItem() -> Any

X.headerItem() -> PythonQt.QtGui.QTreeWidgetItem

Supplemental documentation: Qt 5 reference:

QTreeWidgetItem *QTreeWidget::headerItem() const

Returns the item used for the tree widget's header.

See also setHeaderItem().

Upstream PySide2 reference signatures (binding differences may apply):

headerItem(self) -> PySide2.QtWidgets.QTreeWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtreewidget.html#headerItem

iconSizeChanged

iconSizeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QTreeWidget.iconSizeChanged; argument details are not documented.