Class: QgsCreateAnnotationItemMapToolInterface¶
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
Returns the handler object for the map tool. |
|
Returns a reference to the associated map tool. |
- class qgis.gui.QgsCreateAnnotationItemMapToolInterface[source]¶
Bases:
object
- handler(self) QgsCreateAnnotationItemMapToolHandler | None [source]¶
Returns the handler object for the map tool.
- Return type:
Optional[QgsCreateAnnotationItemMapToolHandler]
- mapTool(self) QgsMapTool | None [source]¶
Returns a reference to the associated map tool.
- Return type:
Optional[QgsMapTool]