Class: QgsExpressionItem¶
An expression item that can be used in the
QgsExpressionBuilderWidget
tree.
Class Hierarchy¶
Base classes¶
Methods
Gets the help text that is associated with this expression item. |
|
Gets the type of expression item, e.g., header, field, ExpressionNode. |
|
Set the help text for the current item |
Attributes
Custom sort order role |
|
Item name role |
|
Item type role |
|
Search tags role |
- class qgis.gui.QgsExpressionItem[source]¶
Bases:
QStandardItem
- CUSTOM_SORT_ROLE: int = 257¶
Custom sort order role
- ExpressionNode = 2¶
- Field = 1¶
- Header = 0¶
- ITEM_NAME_ROLE: int = 260¶
Item name role
- ITEM_TYPE_ROLE: int = 258¶
Item type role
- LAYER_ID_ROLE: int = 261¶
Added in version 3.24.
- SEARCH_TAGS_ROLE: int = 259¶
Search tags role
- getHelpText(self) str [source]¶
Gets the help text that is associated with this expression item.
- Return type:
str
- Returns:
The help text.