Class: QgsVectorTileLabeling

Base class for labeling configuration classes for vector tile layers.

Added in version 3.14.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: clone(), readXml(), type(), writeXml()

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorTileLabeling

Subclasses

QgsVectorTileBasicLabeling

Basic labeling configuration for vector tile layers.

Abstract Methods

clone

Returns a new copy of the object

readXml

Reads labeling properties from given XML element

type

Unique type string of the labeling configuration implementation

writeXml

Writes labeling properties to given XML element

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsVectorTileLabeling. See the FAQ for more details.

resolveReferences

Resolves references to other objects - second phase of loading - after readXml()

class qgis.core.QgsVectorTileLabeling[source]

Bases: object

abstract clone(self) QgsVectorTileLabeling | None[source]

Returns a new copy of the object

Return type:

Optional[QgsVectorTileLabeling]

abstract readXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Reads labeling properties from given XML element

Parameters:
virtual resolveReferences(self, project: QgsProject)[source]

Resolves references to other objects - second phase of loading - after readXml()

Parameters:

project (QgsProject)

abstract type(self) str[source]

Unique type string of the labeling configuration implementation

Return type:

str

abstract writeXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Writes labeling properties to given XML element

Parameters: