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
Adds an editor widget
wrapper
to the registry If an editor widget with same id already exists, the wrapper is deleted andFalse
is returned.Creates an editor widget for the given
setting
using the corresponding registered wrapperReturns 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 andFalse
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:
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: