Class: QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase¶
Base factory for editors for settings.
Added in version 3.32.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: QgsSettingsEditorWidgetWrapper.configureEditorPrivate(), QgsSettingsEditorWidgetWrapper.createEditorPrivate(), QgsSettingsEditorWidgetWrapper.createWrapper(), QgsSettingsEditorWidgetWrapper.enableAutomaticUpdatePrivate(), QgsSettingsEditorWidgetWrapper.id(), QgsSettingsEditorWidgetWrapper.setSettingFromWidget(), QgsSettingsEditorWidgetWrapper.setWidgetFromSetting(), QgsSettingsEditorWidgetWrapper.setWidgetFromVariant(), QgsSettingsEditorWidgetWrapper.variantValueFromWidget()
Class Hierarchy¶
Base classes¶
| Base class for settings editor wrappers. | |
Subclasses¶
| A factory for editors of string settings with a combo box. | 
Methods
| To be re-implemented to implemeent type specific configuration (e.g. opacity for colors). | |
| Returns the editor | |
| Sets the widget value | |
| Returns the setting | |
| Returns the widget value | 
- class qgis.gui.QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase¶
- Bases: - QgsSettingsEditorWidgetWrapper- __init__(parent: QObject | None = None)
- Constructor - Parameters:
- parent (Optional[QObject] = None) 
 
 - configureEditorPrivateImplementation(self)¶
- To be re-implemented to implemeent type specific configuration (e.g. opacity for colors) 
 - editor(self) QComboBox | None¶
- Returns the editor - Return type:
- Optional[QComboBox] 
 
 - setWidgetValue(self, value: str | None) bool¶
- Sets the widget value - Parameters:
- value (Optional[str]) 
- Return type:
- bool 
 
 - setting(self) QgsSettingsEntryString | None¶
- Returns the setting - Return type:
- Optional[QgsSettingsEntryString] 
 
 - valueFromWidget(self) str¶
- Returns the widget value - Return type:
- str