Class: QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQLineEditQStringBase

This class is a base factory of editor for settings

Added in version 3.32.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQLineEditQStringBase

Base classes

QgsSettingsEditorWidgetWrapper

Base class for settings editor wrappers

QObject

Subclasses

QgsSettingsStringLineEditWrapper

This class is a factory of editor for string settings with a line edit

Methods

configureEditorPrivateImplementation

To be re-implemented to implemeent type specific configuration (e.g. opacity for colors).

editor

Returns the editor

setWidgetValue

Sets the widget value

setting

Returns the setting

valueFromWidget

Returns the widget value

class qgis.gui.QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQLineEditQStringBase

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) QLineEdit | None

Returns the editor

Return type:

Optional[QLineEdit]

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