Class: QgsLabelingEngineRuleWidget¶
Base class for widgets which allow control over the properties of
QgsAbstractLabelingEngineRule
subclasses.
See also
QgsLabelingEngineRulesWidget
for a widget for configuring multiple rules
See also
QgsLabelingEngineRuleDialog
Added in version 3.40.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: rule()
, setRule()
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as an inline panel. |
|
Abstract Methods
Returns the rule defined by the current settings in the widget. |
|
Sets the rule to show in the widget. |
Signals
Emitted whenever the configuration of the rule is changed. |
- class qgis.gui.QgsLabelingEngineRuleWidget[source]¶
Bases:
QgsPanelWidget
- __init__(parent: QWidget | None = None)
Constructor for QgsLabelingEngineRuleWidget.
- Parameters:
parent (Optional[QWidget] = None)
- abstract rule(self) QgsAbstractLabelingEngineRule | None [source]¶
Returns the rule defined by the current settings in the widget.
Ownership of the returned object is transferred to the caller
See also
- Return type:
Optional[QgsAbstractLabelingEngineRule]
- abstract setRule(self, rule: QgsAbstractLabelingEngineRule | None)[source]¶
Sets the
rule
to show in the widget. Ownership is not transferred.See also
- Parameters:
rule (Optional[QgsAbstractLabelingEngineRule])