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.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: handler()
, mapTool()
Abstract Methods
Returns the handler object for the map tool. |
|
Returns a reference to the associated map tool. |
- class qgis.gui.QgsCreateAnnotationItemMapToolInterface[source]¶
Bases:
object
- abstract handler(self) QgsCreateAnnotationItemMapToolHandler | None [source]¶
Returns the handler object for the map tool.
- Return type:
Optional[QgsCreateAnnotationItemMapToolHandler]
- abstract mapTool(self) QgsMapTool | None [source]¶
Returns a reference to the associated map tool.
- Return type:
Optional[QgsMapTool]