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

Inheritance diagram of qgis.gui.QgsLabelingEngineRuleWidget

Base classes

QgsPanelWidget

Base class for any widget that can be shown as a inline panel

QWidget

QObject

QPaintDevice

Methods

rule

Returns the rule defined by the current settings in the widget.

setRule

Sets the rule to show in the widget.

Signals

changed

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)

signal changed[source]

Emitted whenever the configuration of the rule is changed.

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

setRule()

Return type:

Optional[QgsAbstractLabelingEngineRule]

setRule(self, rule: QgsAbstractLabelingEngineRule | None)[source]

Sets the rule to show in the widget. Ownership is not transferred.

See also

rule()

Parameters:

rule (Optional[QgsAbstractLabelingEngineRule])