Class: QgsCreateAnnotationItemMapToolInterface

class qgis.gui.QgsCreateAnnotationItemMapToolInterface

Bases: sip.wrapper

An interface for map tools which create annotation items.

Clients should connect to the map tool’s itemCreated() signal, and call the takeCreatedItem() implementation to take ownership of the newly created item whenever this signal is emitted.

Added in version 3.22:

Methods

handler

Returns the handler object for the map tool.

mapTool

Returns a reference to the associated map tool.

handler(self) QgsCreateAnnotationItemMapToolHandler | None

Returns the handler object for the map tool.

Return type:

Optional[QgsCreateAnnotationItemMapToolHandler]

mapTool(self) QgsMapTool | None

Returns a reference to the associated map tool.

Return type:

Optional[QgsMapTool]