Class: QgsEditConditionalFormatRuleWidget¶
A widget for customizing an individual conditional formatting rule.
Added in version 3.10.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as an inline panel. |
|
Methods
Returns the current style defined by the widget. |
|
Sets the widget to match the settings from the specified style. |
|
Sets the vector layer associated with the widget. |
|
Sets the preset styles that can be used for quick pick. |
|
Sets the current expression rule to show in the widget. |
Signals
Emitted when a user has opted to cancel the rule modification. |
|
Emitted when a user has opted to deleted the current rule. |
|
Emitted when a user has opted to save the current rule. |
- class qgis.gui.QgsEditConditionalFormatRuleWidget[source]¶
Bases:
QgsPanelWidget- __init__(parent: QWidget | None = None)
Constructor for
QgsFieldConditionalFormatWidget, with the specifiedparentwidget.- Parameters:
parent (Optional[QWidget] = None)
- currentStyle(self) QgsConditionalStyle[source]¶
Returns the current style defined by the widget.
See also
- Return type:
- loadStyle(self, style: QgsConditionalStyle)[source]¶
Sets the widget to match the settings from the specified
style.See also
- Parameters:
style (QgsConditionalStyle)
- setLayer(self, layer: QgsVectorLayer | None)[source]¶
Sets the vector
layerassociated with the widget.- Parameters:
layer (Optional[QgsVectorLayer])
- setPresets(self, styles: Iterable[QgsConditionalStyle])[source]¶
Sets the preset
stylesthat can be used for quick pick.- Parameters:
styles (Iterable[QgsConditionalStyle])