Class: QgsExpressionItem¶
-
class
qgis.gui.
QgsExpressionItem
¶ Bases:
PyQt5.QtGui.QStandardItem
An expression item that can be used in the QgsExpressionBuilderWidget tree.
Enums
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
Signals
Attributes
-
CUSTOM_SORT_ROLE
= 257¶
-
ExpressionNode
= 2¶
-
Field
= 1¶
-
Header
= 0¶
-
ITEM_TYPE_ROLE
= 258¶
-
class
ItemType
¶ Bases:
int
-
emitDataChanged
()¶
-
getExpressionText
(self) → str¶
-
getHelpText
(self) → str¶ Gets the help text that is associated with this expression item.
- Returns
The help text.
-
getItemType
(self) → QgsExpressionItem.ItemType¶ Gets the type of expression item, e.g., header, field, ExpressionNode.
- Returns
The QgsExpressionItem.ItemType
-
setHelpText
(self, helpText: str)¶ Set the help text for the current item
Note
The help text can be set as a html string.
-