Class: QgsNumericFormatWidget¶
Base class for widgets which allow control over the properties of
QgsNumericFormat
subclasses
Added in version 3.12.
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as a inline panel |
|
Abstract interface for generating an expression context. |
Subclasses¶
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
|
A widget which allow control over the properties of a |
Methods
Returns the format defined by the current settings in the widget. |
|
Register an expression context generator class that will be used to retrieve an expression context for the widget when required. |
|
Sets the format to show in the widget. |
Signals
Emitted whenever the configuration of the numeric format is changed. |
- class qgis.gui.QgsNumericFormatWidget[source]¶
Bases:
QgsPanelWidget
,QgsExpressionContextGenerator
- __init__(parent: QWidget | None = None)
Constructor for QgsNumericFormatWidget.
- Parameters:
parent (Optional[QWidget] = None)
- format(self) QgsNumericFormat | None [source]¶
Returns the format defined by the current settings in the widget.
Ownership of the returned object is transferred to the caller
See also
- Return type:
Optional[QgsNumericFormat]
- registerExpressionContextGenerator(self, generator: QgsExpressionContextGenerator | None)[source]¶
Register an expression context generator class that will be used to retrieve an expression context for the widget when required.
Added in version 3.40.
- Parameters:
generator (Optional[QgsExpressionContextGenerator])
- setFormat(self, format: QgsNumericFormat | None)[source]¶
Sets the
format
to show in the widget. Ownership is not transferred.See also
- Parameters:
format (Optional[QgsNumericFormat])