Class: QgsVectorLayerSimpleLabeling

class qgis.core.QgsVectorLayerSimpleLabeling(settings: QgsPalLayerSettings)

Bases: qgis._core.QgsAbstractVectorLayerLabeling

Constructs simple labeling configuration with given initial settings

Basic implementation of the labeling interface.

The configuration is kept in layer’s custom properties for backward compatibility.

New in version 3.0: Enums

Methods

accept

clone

create

Create the instance from a DOM element with saved configuration

requiresAdvancedEffects

save

setSettings

Set pal settings (takes ownership).

settings

toSld

type

writeTextSymbolizer

Signals

Attributes

accept(self, visitor: QgsStyleEntityVisitorInterface) → bool
clone(self) → QgsAbstractVectorLayerLabeling
create(element: QDomElement, context: QgsReadWriteContext) → QgsVectorLayerSimpleLabeling

Create the instance from a DOM element with saved configuration

requiresAdvancedEffects(self) → bool
save(self, doc: QDomDocument, context: QgsReadWriteContext) → QDomElement
setSettings(self, settings: QgsPalLayerSettings, providerId: str = '')

Set pal settings (takes ownership).

Parameters
  • settings – Pal layer settings

  • providerId – Unused parameter

New in version 3.0.

settings(self, providerId: str = '') → QgsPalLayerSettings
toSld(self, parent: QDomNode, props: Dict[str, str])
type(self) → str
writeTextSymbolizer()