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

Inheritance diagram of qgis.core.QgsVectorLayerSimpleLabeling

Base classes

QgsAbstractVectorLayerLabeling

Abstract base class - its implementations define different approaches to the labeling of a vector layer.

Abstract Methods

setSettings

Set pal settings (takes ownership).

Static Methods

create

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:
Return type:

Optional[QgsVectorLayerSimpleLabeling]

abstract setSettings(self, settings: QgsPalLayerSettings | None, providerId: str | None = '')[source]

Set pal settings (takes ownership).

Parameters: