Class: QgsVectorLayerSimpleLabeling¶
Basic implementation of the labeling interface.
The configuration is kept in layer’s custom properties for backward compatibility.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Abstract base class - its implementations define different approaches to the labeling of a vector layer. |
Abstract Methods
Set pal settings (takes ownership). |
Static Methods
Create the instance from a DOM element with saved configuration |
- class qgis.core.QgsVectorLayerSimpleLabeling[source]¶
Bases:
QgsAbstractVectorLayerLabeling- __init__(settings: QgsPalLayerSettings)
Constructs simple labeling configuration with given initial settings
- Parameters:
settings (QgsPalLayerSettings)
- static create(element: QDomElement, context: QgsReadWriteContext) QgsVectorLayerSimpleLabeling | None[source]¶
Create the instance from a DOM element with saved configuration
- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- Return type:
- abstract setSettings(self, settings: QgsPalLayerSettings | None, providerId: str | None = '')[source]¶
Set pal settings (takes ownership).
- Parameters:
settings (Optional[QgsPalLayerSettings]) – Pal layer settings
providerId (Optional[str] = '') – Unused parameter