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.
Class Hierarchy¶
Base classes¶
Base class for any widget that can be shown as a inline panel |
|
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)
- 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]
- setRule(self, rule: QgsAbstractLabelingEngineRule | None)[source]¶
Sets the
rule
to show in the widget. Ownership is not transferred.See also
- Parameters:
rule (Optional[QgsAbstractLabelingEngineRule])