Class: QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase¶
- class qgis.gui.QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase¶
Bases:
QgsSettingsEditorWidgetWrapper
This class is a base factory of editor for settings
Added in version 3.32.
QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase(parent: Optional[QObject] = None) Constructor
Methods
- param editor:
To be re-implemented to implemeent type specific configuration (e.g. opacity for colors).
- 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, a0: QChildEvent | None)¶
- configureEditorPrivate(self, editor: QWidget | None, setting: QgsSettingsEntryBase | None) → bool¶
- Parameters:
editor (Optional[QWidget])
setting (Optional[QgsSettingsEntryBase])
- Return type:
bool
- configureEditorPrivateImplementation(self)¶
To be re-implemented to implemeent type specific configuration (e.g. opacity for colors)
- connectNotify(self, signal: QMetaMethod)¶
- createEditorPrivate(self, parent: QWidget | None = None) → QWidget | None¶
- Parameters:
parent (Optional[QWidget] = None)
- Return type:
Optional[QWidget]
- createWrapper(self, parent: QObject | None = None) → QgsSettingsEditorWidgetWrapper | None¶
- Parameters:
parent (Optional[QObject] = None)
- Return type:
Optional[QgsSettingsEditorWidgetWrapper]
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- editor(self) → QgsColorButton | None¶
Returns the editor
- Return type:
Optional[QgsColorButton]
- id(self) → str¶
- Return type:
str
- isSignalConnected(self, signal: QMetaMethod) → bool¶
- receivers(self, signal: PYQT_SIGNAL) → int¶
- sender(self) → QObject | None¶
- 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 | None¶
Returns the setting
- Return type:
Optional[QgsSettingsEntryColor]
- timerEvent(self, a0: QTimerEvent | None)¶
- valueFromWidget(self) → QColor¶
Returns the widget value
- Return type:
QColor
- variantValueFromWidget(self) → Any¶
- Return type:
Any