Class: QgsMapDecoration

class qgis.core.QgsMapDecoration

Bases: sip.wrapper

Interface for map decorations.

New in version 3.0.

QgsMapDecoration() Constructor for QgsMapDecoration.

QgsMapDecoration(QgsMapDecoration)

Methods

displayName

Returns the map decoration display name.

render

Renders a map decoration.

setDisplayName

Sets the map decoration display name.

displayName(self) str

Returns the map decoration display name.

New in version 3.14.

Return type

str

render(self, mapSettings: QgsMapSettings, context: QgsRenderContext)

Renders a map decoration.

Parameters
setDisplayName(self, name: str)

Sets the map decoration display name.

New in version 3.14.

Parameters

name (str) –