Class: QgsTreeWidgetItemObject

class qgis.gui.QgsTreeWidgetItemObject(type: int = QTreeWidgetItem.Type)

Bases: PyQt5.QtCore.QObject, qgis._gui.QgsTreeWidgetItem

Constructor for QgsTreeWidgetItemObject

Parameters:type – item type

QgsTreeWidgetItemObject(parent: QTreeWidget, type: int = QTreeWidgetItem.Type) Constructs a tree widget item of the specified type and appends it to the items in the given parent.

Custom QgsTreeWidgetItem with extra signals when item is edited.

New in version 3.0: Methods

childEvent
connectNotify
customEvent
disconnectNotify
emitDataChanged
isSignalConnected
receivers
sender
senderSignalIndex
setData Sets the value for the item’s column and role to the given value.
timerEvent

Signals

itemEdited This signal is emitted when the contents of the column in the specified item has been edited by the user.

Attributes

childEvent()
connectNotify()
customEvent()
disconnectNotify()
emitDataChanged()
isSignalConnected()
itemEdited

This signal is emitted when the contents of the column in the specified item has been edited by the user. [signal]

receivers()
sender()
senderSignalIndex()
setData(self, column: int, role: int, value: Any)

Sets the value for the item’s column and role to the given value.

timerEvent()