Skip to content

PythonQt.QtGui.QTreeWidgetItem · declarations 002

Back to PythonQt.QtGui.QTreeWidgetItem

setHidden

setHidden(hide: bool) -> None

X.setHidden(hide)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setHidden(bool hide)

Hides the item if hide is true, otherwise shows the item.

Note: A call to this function has no effect if the item is not currently in a view. In particular, calling setHidden(true) on an item and only then adding it to a view will result in a visible item.

This function was introduced in Qt 4.2.

See also isHidden().

Upstream PySide2 reference signatures (binding differences may apply):

setHidden(self, hide: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setHidden

setIcon

setIcon(column: int, icon: Any) -> None

X.setIcon(column, icon)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setIcon(int column, const QIcon \&icon)

Sets the icon to be displayed in the given column to icon.

See also icon(), setText(), and iconSize.

Upstream PySide2 reference signatures (binding differences may apply):

setIcon(self, column: int, icon: PySide2.QtGui.QIcon) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setIcon

setSelected

setSelected(select: bool) -> None

X.setSelected(select)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setSelected(bool select)

Sets the selected state of the item to select.

This function was introduced in Qt 4.2.

See also isSelected().

Upstream PySide2 reference signatures (binding differences may apply):

setSelected(self, select: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setSelected

setSizeHint

setSizeHint(column: int, size: Any) -> None

X.setSizeHint(column, size)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setSizeHint(int column, const QSize \&size)

Sets the size hint for the tree item in the given column to be size. If no size hint is set or size is invalid, the item delegate will compute the size hint based on the item data.

This function was introduced in Qt 4.1.

See also sizeHint().

Upstream PySide2 reference signatures (binding differences may apply):

setSizeHint(self, column: int, size: PySide2.QtCore.QSize) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setSizeHint

setStatusTip

setStatusTip(column: int, statusTip: str) -> None

X.setStatusTip(column, statusTip)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setStatusTip(int column, const QString \&statusTip)

Sets the status tip for the given column to the given statusTip. QTreeWidget mouse tracking needs to be enabled for this feature to work.

See also statusTip(), setToolTip(), and setWhatsThis().

Upstream PySide2 reference signatures (binding differences may apply):

setStatusTip(self, column: int, statusTip: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setStatusTip

setText

setText(column: int, text: str) -> None

X.setText(column, text)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setText(int column, const QString \&text)

Sets the text to be displayed in the given column to the given text.

See also text(), setFont(), and setForeground().

Upstream PySide2 reference signatures (binding differences may apply):

setText(self, column: int, text: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setText

setTextAlignment

setTextAlignment(column: int, alignment: int) -> None

X.setTextAlignment(column, alignment)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setTextAlignment(int column, int alignment)

Sets the text alignment for the label in the given column to the alignment specified (see Qt::AlignmentFlag).

See also textAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

setTextAlignment(self, column: int, alignment: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setTextAlignment

setToolTip

setToolTip(column: int, toolTip: str) -> None

X.setToolTip(column, toolTip)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setToolTip(int column, const QString \&toolTip)

Sets the tooltip for the given column to toolTip.

See also toolTip(), setStatusTip(), and setWhatsThis().

Upstream PySide2 reference signatures (binding differences may apply):

setToolTip(self, column: int, toolTip: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setToolTip

setWhatsThis

setWhatsThis(column: int, whatsThis: str) -> None

X.setWhatsThis(column, whatsThis)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::setWhatsThis(int column, const QString \&whatsThis)

Sets the "What's This?" help for the given column to whatsThis.

See also whatsThis(), setStatusTip(), and setToolTip().

Upstream PySide2 reference signatures (binding differences may apply):

setWhatsThis(self, column: int, whatsThis: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#setWhatsThis

sizeHint

sizeHint(column: int) -> Any

X.sizeHint(column) -> PythonQt.QtCore.QSize

Supplemental documentation: Qt 5 reference:

QSize QTreeWidgetItem::sizeHint(int column) const

Returns the size hint set for the tree item in the given column (see QSize).

This function was introduced in Qt 4.1.

See also setSizeHint().

Upstream PySide2 reference signatures (binding differences may apply):

sizeHint(self, column: int) -> PySide2.QtCore.QSize

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#sizeHint

sortChildren

sortChildren(column: int, order: Any) -> None

X.sortChildren(column, order)

Supplemental documentation: Qt 5 reference:

void QTreeWidgetItem::sortChildren(int column, Qt::SortOrder order)

Sorts the children of the item using the given order, by the values in the given column.

Note: This function does nothing if the item is not associated with a QTreeWidget.

This function was introduced in Qt 4.2.

Upstream PySide2 reference signatures (binding differences may apply):

sortChildren(self, column: int, order: PySide2.QtCore.Qt.SortOrder) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#sortChildren

statusTip

statusTip(column: int) -> str

X.statusTip(column) -> str

Supplemental documentation: Qt 5 reference:

QString QTreeWidgetItem::statusTip(int column) const

Returns the status tip for the contents of the given column.

See also setStatusTip().

Upstream PySide2 reference signatures (binding differences may apply):

statusTip(self, column: int) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#statusTip

takeChild

takeChild(index: int) -> Any

X.takeChild(index) -> PythonQt.QtGui.QTreeWidgetItem

Supplemental documentation: Qt 5 reference:

QTreeWidgetItem *QTreeWidgetItem::takeChild(int index)

Removes the item at index and returns it, otherwise return 0.

Upstream PySide2 reference signatures (binding differences may apply):

takeChild(self, index: int) -> PySide2.QtWidgets.QTreeWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#takeChild

takeChildren

takeChildren() -> tuple

X.takeChildren() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QTreeWidgetItem *> QTreeWidgetItem::takeChildren()

Removes the list of children and returns it, otherwise returns an empty list.

This function was introduced in Qt 4.1.

Upstream PySide2 reference signatures (binding differences may apply):

takeChildren(self) -> typing.List[PySide2.QtWidgets.QTreeWidgetItem]

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#takeChildren

text

text(column: int) -> str

X.text(column) -> str

Supplemental documentation: Qt 5 reference:

QString QTreeWidgetItem::text(int column) const

Returns the text in the specified column.

See also setText().

Upstream PySide2 reference signatures (binding differences may apply):

text(self, column: int) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#text

textAlignment

textAlignment(column: int) -> int

X.textAlignment(column) -> int

Supplemental documentation: Qt 5 reference:

int QTreeWidgetItem::textAlignment(int column) const

Returns the text alignment for the label in the given column (see Qt::AlignmentFlag).

See also setTextAlignment().

Upstream PySide2 reference signatures (binding differences may apply):

textAlignment(self, column: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#textAlignment

toolTip

toolTip(column: int) -> str

X.toolTip(column) -> str

Supplemental documentation: Qt 5 reference:

QString QTreeWidgetItem::toolTip(int column) const

Returns the tool tip for the given column.

See also setToolTip().

Upstream PySide2 reference signatures (binding differences may apply):

toolTip(self, column: int) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#toolTip

treeWidget

treeWidget() -> Any

X.treeWidget() -> PythonQt.QtGui.QTreeWidget

Supplemental documentation: Qt 5 reference:

QTreeWidget *QTreeWidgetItem::treeWidget() const

Returns the tree widget that contains the item.

Upstream PySide2 reference signatures (binding differences may apply):

treeWidget(self) -> PySide2.QtWidgets.QTreeWidget

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#treeWidget

type

type() -> int

X.type() -> int

Supplemental documentation: Qt 5 reference:

int QTreeWidgetItem::type() const

Returns the type passed to the QTreeWidgetItem constructor.

Upstream PySide2 reference signatures (binding differences may apply):

type(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#type

whatsThis

whatsThis(column: int) -> str

X.whatsThis(column) -> str

Supplemental documentation: Qt 5 reference:

QString QTreeWidgetItem::whatsThis(int column) const

Returns the "What's This?" help for the contents of the given column.

See also setWhatsThis().

Upstream PySide2 reference signatures (binding differences may apply):

whatsThis(self, column: int) -> str

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#whatsThis

write

write(out: Any) -> None

X.write(out)

Supplemental documentation: Qt 5 reference:

[virtual] void QTreeWidgetItem::write(QDataStream \&out) const

Writes the item to stream out. This only writes data from one single item.

See also read().

Upstream PySide2 reference signatures (binding differences may apply):

write(self, out: PySide2.QtCore.QDataStream) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtreewidgetitem.html#write