Class: QgsNumericFormatGuiRegistry

class qgis.gui.QgsNumericFormatGuiRegistry

Bases: sip.wrapper

The QgsNumericFormatGuiRegistry is a home for widgets for configuring QgsNumericFormat objects.

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

New in version 3.12.

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

QgsNumericFormatGuiRegistry(QgsNumericFormatGuiRegistry)

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.

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:
formatConfigurationWidget(self, format: QgsNumericFormat) QgsNumericFormatWidget

Returns a new configuration widget for an format.

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

Parameters:

format (QgsNumericFormat) –

Return type:

QgsNumericFormatWidget

removeFormatConfigurationWidgetFactory(self, id: str)

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

Parameters:

id (str) –