Class: QgsAnnotationItemNode

Contains information about a node used for editing an annotation item.

Added in version 3.22.

class qgis.core.QgsAnnotationItemNode[source]

Bases: object

__init__()
__init__(id: QgsVertexId, point: QgsPointXY, type: Qgis.AnnotationItemNodeType, cursor: Qt.CursorShape = Qt.CursorShape.ArrowCursor)

Constructor for QgsAnnotationItemNode, with the specified id, point and type.

Parameters:
__init__(a0: QgsAnnotationItemNode)
Parameters:

a0 (QgsAnnotationItemNode)

cursor(self) Qt.CursorShape[source]

Returns the mouse cursor shape to use when hovering the node.

See also

setCursor()

Added in version 3.34.

Return type:

Qt.CursorShape

id(self) QgsVertexId[source]

Returns the ID number of the node, used for uniquely identifying the node in the item.

Return type:

QgsVertexId

point(self) QgsPointXY[source]

Returns the node’s position, in geographic coordinates.

The coordinates will match the annotation item’s CRS.

See also

setPoint()

Return type:

QgsPointXY

setCursor(self, shape: Qt.CursorShape)[source]

Sets the mouse cursor shape to use when hovering the node.

See also

cursor()

Added in version 3.34.

Parameters:

shape (Qt.CursorShape)

setPoint(self, point: QgsPointXY)[source]

Sets the node’s position, in geographic coordinates.

The coordinates will match the annotation item’s CRS.

See also

point()

Parameters:

point (QgsPointXY)

setType(self, type: Qgis.AnnotationItemNodeType)[source]

Sets the node type.

See also

type()

Parameters:

type (Qgis.AnnotationItemNodeType)

type(self) Qgis.AnnotationItemNodeType[source]

Returns the node type.

See also

setType()

Return type:

Qgis.AnnotationItemNodeType