Class: QgsCalloutAbstractMetadata

class qgis.core.QgsCalloutAbstractMetadata(name: str, visibleName: str)

Bases: sip.wrapper

Constructor for QgsCalloutAbstractMetadata, with the specified name.

The visibleName argument gives a translated, user friendly string identifying the callout type.

QgsCalloutAbstractMetadata(QgsCalloutAbstractMetadata)

Stores metadata about one callout renderer class.

Note

It’s necessary to implement createCallout() function. In C++ you can use QgsCalloutMetadata convenience class.

New in version 3.10: Enums

Methods

createCallout

Create a callout of this type given the map of properties.

createCalloutWidget

Creates a widget for configuring callouts of this type.

name

Returns the unique name of the callout type.

visibleName

Returns a friendly display name of the callout type.

Signals

Attributes

createCallout(self, properties: Dict[str, Any], context: QgsReadWriteContext) → QgsCallout

Create a callout of this type given the map of properties.

Ownership of the callout is transferred to the caller.

createCalloutWidget(self, QgsVectorLayer) → QgsCalloutWidget

Creates a widget for configuring callouts of this type. Can return None if there’s no GUI required.

Ownership of the widget is transferred to the caller.

name(self) → str

Returns the unique name of the callout type. This value is not translated.

See also

visibleName()

visibleName(self) → str

Returns a friendly display name of the callout type. This value is translated.

See also

name()