Class: QgsSettingsEditorWidgetRegistry

class qgis.gui.QgsSettingsEditorWidgetRegistry

Bases: sip.wrapper

This class manages editor widgets for settings

Added in version 3.32.

QgsSettingsEditorWidgetRegistry() Constructor

QgsSettingsEditorWidgetRegistry(QgsSettingsEditorWidgetRegistry)

Methods

addWrapper

Adds an editor widget wrapper to the registry If an editor widget with same id already exists, the wrapper is deleted and False is returned.

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 If an editor widget with same id already exists, the wrapper is deleted and False is returned.

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:
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