Class: QgsLabelingEngineRulesDialog¶
A dialog which allows configuration of a list of labeling engine rules.
This dialog allows users to add, remove, and edit the properties of a
list of QgsAbstractLabelingEngineRule objects.
See also
Added in version 3.40.
QgsLabelingEngineRulesDialog¶
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Methods
Returns the rules shown in the dialog. |
|
Sets the rules to show in the dialog. |
- class qgis.gui.QgsLabelingEngineRulesDialog[source]¶
Bases:
QDialog- __init__(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = QgsGuiUtils.ModalDialogFlags)¶
Constructor for QgsLabelingEngineRulesDialog.
- Parameters:
parent (Optional[QWidget] = None) – parent widget
flags (Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags) – window flags for dialog
- rules(self) list[QgsAbstractLabelingEngineRule]¶
Returns the rules shown in the dialog.
The caller takes ownership of all returned rules.
- Return type:
- setRules(self, rules: Iterable[QgsAbstractLabelingEngineRule])[source]¶
Sets the
rulesto show in the dialog.Ownership is not transferred, an internal copy will be made.
- Parameters:
rules (Iterable[QgsAbstractLabelingEngineRule])