QGIS API Documentation 3.38.0-Grenoble (exported)
|
Custom QgsTreeWidgetItem with extra signals when item is edited. More...
#include <qgstreewidgetitem.h>
Signals | |
void | itemEdited (QTreeWidgetItem *item, int column) |
Emitted when the contents of the column in the specified item has been edited by the user. | |
Public Member Functions | |
QgsTreeWidgetItemObject (int type=Type) | |
Constructor for QgsTreeWidgetItemObject. | |
QgsTreeWidgetItemObject (QTreeWidget *parent, int type=Type) | |
Constructs a tree widget item of the specified type and appends it to the items in the given parent. | |
void | setData (int column, int role, const QVariant &value) override |
Sets the value for the item's column and role to the given value. | |
Public Member Functions inherited from QgsTreeWidgetItem | |
QgsTreeWidgetItem (const QStringList &strings, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (QTreeWidget *view, const QStringList &strings, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (QTreeWidget *view, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (QTreeWidget *view, QTreeWidgetItem *after, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (QTreeWidgetItem *parent, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
QgsTreeWidgetItem (QTreeWidgetItem *parent, QTreeWidgetItem *after, int type=Type) | |
Constructor for QgsTreeWidgetItem. | |
int | alwaysOnTopPriority () const |
Returns the item's priority when it is set to show always on top. | |
bool | operator< (const QTreeWidgetItem &other) const override |
Returns true if this item should appear before another item when sorting a list of items. | |
bool | operator>= (const QTreeWidgetItem &other) const |
Returns true if this item should appear after another item when sorting a list of items. | |
void | setAlwaysOnTopPriority (int priority) |
Sets a the item to display always on top of other items in the widget, regardless of the sort column and sort or display value for the item. | |
void | setSortData (int column, const QVariant &value) |
Sets the custom sort data for a specified column. | |
QVariant | sortData (int column) const |
Returns the custom sort data for a specified column. | |
Custom QgsTreeWidgetItem with extra signals when item is edited.
Definition at line 160 of file qgstreewidgetitem.h.
|
explicit |
Constructor for QgsTreeWidgetItemObject.
type | item type |
Definition at line 131 of file qgstreewidgetitem.cpp.
|
explicit |
Constructs a tree widget item of the specified type and appends it to the items in the given parent.
Definition at line 135 of file qgstreewidgetitem.cpp.
|
signal |
Emitted when the contents of the column in the specified item has been edited by the user.
|
override |
Sets the value for the item's column and role to the given value.
Definition at line 140 of file qgstreewidgetitem.cpp.