Class: QgsNumericFormatGuiRegistry

A registry for widgets which configure QgsNumericFormat objects.

QgsNumericFormatGuiRegistry is not usually directly created, but rather accessed through QgsGui.numericFormatGuiRegistry().

Added in version 3.12.

Methods

addFormatConfigurationWidgetFactory

Add a new configuration widget factory for customizing a numeric format with the specified id.

formatConfigurationWidget

Returns a new configuration widget for an format.

removeFormatConfigurationWidgetFactory

Removes the configuration widget factory for customizing numeric formats with the specified id.

class qgis.gui.QgsNumericFormatGuiRegistry[source]

Bases: object

__init__()

Constructor. Should never be called manually, is already created by QgsGui.

__init__(a0: QgsNumericFormatGuiRegistry)
Parameters:

a0 (QgsNumericFormatGuiRegistry)

addFormatConfigurationWidgetFactory(self, id: str | None, factory: QgsNumericFormatConfigurationWidgetFactory | None)[source]

Add a new configuration widget factory for customizing a numeric format with the specified id.

Ownership is taken by the reigstry.

Parameters:
formatConfigurationWidget(self, format: QgsNumericFormat | None) QgsNumericFormatWidget | None[source]

Returns a new configuration widget for an format.

Returns None if no configuration widgets are available for the specified format.

Parameters:

format (Optional[QgsNumericFormat])

Return type:

Optional[QgsNumericFormatWidget]

removeFormatConfigurationWidgetFactory(self, id: str | None)[source]

Removes the configuration widget factory for customizing numeric formats with the specified id.

Parameters:

id (Optional[str])