Class: QgsNumericFormatGuiRegistry¶
- class qgis.gui.QgsNumericFormatGuiRegistry¶
Bases:
sip.wrapper
The
QgsNumericFormatGuiRegistry
is a home for widgets for configuringQgsNumericFormat
objects.QgsNumericFormatGuiRegistry
is not usually directly created, but rather accessed throughQgsGui.numericFormatGuiRegistry()
.New in version 3.12.
QgsNumericFormatGuiRegistry() Constructor. Should never be called manually, is already created by
QgsGui
.QgsNumericFormatGuiRegistry(
QgsNumericFormatGuiRegistry
)Methods
Add a new configuration widget factory for customizing a numeric format with the specified
id
.Returns a new configuration widget for an
format
.Removes the configuration widget factory for customizing numeric formats with the specified
id
.- addFormatConfigurationWidgetFactory(self, id: str, factory: QgsNumericFormatConfigurationWidgetFactory)¶
Add a new configuration widget factory for customizing a numeric format with the specified
id
.Ownership is taken by the reigstry.
- Parameters:
id (str) –
factory (QgsNumericFormatConfigurationWidgetFactory) –
- formatConfigurationWidget(self, format: QgsNumericFormat) QgsNumericFormatWidget ¶
Returns a new configuration widget for an
format
.Returns
None
if no configuration widgets are available for the specifiedformat
.- Parameters:
format (QgsNumericFormat) –
- Return type:
- removeFormatConfigurationWidgetFactory(self, id: str)¶
Removes the configuration widget factory for customizing numeric formats with the specified
id
.- Parameters:
id (str) –