Class: QgsSettingsEditorWidgetRegistry

class qgis.gui.QgsSettingsEditorWidgetRegistry

Bases: sip.wrapper

This class manages editor widgets for settings

New in version 3.32.

QgsSettingsEditorWidgetRegistry() Constructor

QgsSettingsEditorWidgetRegistry(QgsSettingsEditorWidgetRegistry)

Methods

addWrapper

Adds an editor widget wrapper to the registry Returns False if an editor widget with same id already exists.

createEditor

Creates an editor widget for the given setting using the corresponding registered wrapper

createWrapper

Returns a new instance of the editor widget for the given id

addWrapper(self, wrapper: QgsSettingsEditorWidgetWrapper) bool

Adds an editor widget wrapper to the registry Returns False if an editor widget with same id already exists.

Parameters:

wrapper (QgsSettingsEditorWidgetWrapper) –

Return type:

bool

createEditor(self, setting: QgsSettingsEntryBase, dynamicKeyPartList: Iterable[str], parent: QWidget = None) QWidget

Creates an editor widget for the given setting using the corresponding registered wrapper

Parameters:
  • setting (QgsSettingsEntryBase) –

  • dynamicKeyPartList (Iterable[str]) –

  • parent (QWidget = None) –

Return type:

QWidget

createWrapper(self, id: str, parent: QObject) QgsSettingsEditorWidgetWrapper

Returns a new instance of the editor widget for the given id

Parameters:
  • id (str) –

  • parent (QObject) –

Return type:

QgsSettingsEditorWidgetWrapper