Class: QgsTreeWidgetItemObject

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

Bases: PyQt5.QtCore.QObject, QgsTreeWidgetItem

Constructor for QgsTreeWidgetItemObject

Parameters

type (int = QTreeWidgetItem.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.

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

Emitted when the contents of the column in the specified item has been edited by the user.

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

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

Parameters
  • item (QTreeWidgetItem) –

  • column (int) –

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.

Parameters
  • column (int) –

  • role (int) –

  • value (Any) –

timerEvent()