QgsTreeWidgetItemObject class

Custom QgsTreeWidgetItem with extra signals when item is edited.

Base classes

class QgsTreeWidgetItem
QTreeWidgetItem subclass with custom handling for item sorting.

Constructors, destructors, conversion operators

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

Public functions

void setData(int column, int role, const QVariant& value) override
Sets the value for the item's column and role to the given value.

Signals

void itemEdited(QTreeWidgetItem* item, int column)
This signal is emitted when the contents of the column in the specified item has been edited by the user.

Function documentation

QgsTreeWidgetItemObject::QgsTreeWidgetItemObject(int type = Type) explicit

Constructor for QgsTreeWidgetItemObject.

Parameters
type item type