Class: QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase¶
- class qgis.gui.QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase¶
Bases:
QgsSettingsEditorWidgetWrapper
This class is a base factory of editor for settings
New in version 3.32.
QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase(parent: QObject = None) Constructor
Methods
- param editor:
To be re-implemented to implemeent type specific configuration (e.g.
- param parent:
- param parent:
Returns the editor
- rtype:
str
- rtype:
bool
- rtype:
bool
- param value:
Sets the widget value
Returns the setting
Returns the widget value
- rtype:
Any
- childEvent(self, QChildEvent)¶
- configureEditorPrivate(self, editor: QWidget, setting: QgsSettingsEntryBase) → bool¶
- Parameters:
editor (QWidget) –
setting (QgsSettingsEntryBase) –
- Return type:
bool
- configureEditorPrivateImplementation(self)¶
To be re-implemented to implemeent type specific configuration (e.g. opacity for colors)
- connectNotify(self, QMetaMethod)¶
- createEditorPrivate(self, parent: QWidget = None) → QWidget¶
- Parameters:
parent (QWidget = None) –
- Return type:
QWidget
- createWrapper(self, parent: QObject = None) → QgsSettingsEditorWidgetWrapper¶
- Parameters:
parent (QObject = None) –
- Return type:
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- editor(self) → QgsColorButton¶
Returns the editor
- Return type:
- id(self) → str¶
- Return type:
str
- isSignalConnected(self, QMetaMethod) → bool¶
- receivers(self, PYQT_SIGNAL) → int¶
- sender(self) → QObject¶
- senderSignalIndex(self) → int¶
- setSettingFromWidget(self) → bool¶
- Return type:
bool
- setWidgetFromSetting(self) → bool¶
- Return type:
bool
- setWidgetFromVariant(self, value: Any)¶
- Parameters:
value (Any) –
- setWidgetValue(self, value: QColor | Qt.GlobalColor) → bool¶
Sets the widget value
- Parameters:
value (Union[QColor) –
- Return type:
bool
- setting(self) → QgsSettingsEntryColor¶
Returns the setting
- Return type:
- timerEvent(self, QTimerEvent)¶
- valueFromWidget(self) → QColor¶
Returns the widget value
- Return type:
QColor
- variantValueFromWidget(self) → Any¶
- Return type:
Any