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.

New 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

Returns the handler object for the map tool.

Return type:

QgsCreateAnnotationItemMapToolHandler

mapTool(self) QgsMapTool

Returns a reference to the associated map tool.

Return type:

QgsMapTool