Class: QgsExpressionBasedNumericFormat¶
A numeric formatter which uses a QgsExpression to calculate
the text representation of a value.
Added in version 3.40.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Abstract base class for numeric formatters, which allow for formatting a numeric value for display. |
Abstract Methods
Methods
Returns the expression used to calculate the text representation of a value. |
|
Sets the expression used to calculate the text representation of a value. |
- class qgis.core.QgsExpressionBasedNumericFormat[source]¶
Bases:
QgsNumericFormat- abstract clone(self) QgsNumericFormat | None[source]¶
- Return type:
QgsNumericFormat|None
- abstract create(self, configuration: dict[str | None, Any], context: QgsReadWriteContext) QgsNumericFormat | None[source]¶
- Parameters:
configuration (dict[str|None, Any])
context (QgsReadWriteContext)
- Return type:
QgsNumericFormat|None
- expression(self) str[source]¶
Returns the expression used to calculate the text representation of a value.
See also
- Return type:
str