Subgroup: Map
Class: QgsMapCanvasAnnotationItem¶
-
class
qgis.gui.
QgsMapCanvasAnnotationItem
(annotation: QgsAnnotation, mapCanvas: QgsMapCanvas)¶ Bases:
PyQt5.QtCore.QObject
,qgis._gui.QgsMapCanvasItem
Constructor for QgsMapCanvasAnnotationItem.
An interactive map canvas item which displays a QgsAnnotation.
New in version 3.0: Methods
annotation
Returns the item’s annotation. boundingRect
childEvent
connectNotify
contextMenuEvent
cursorShapeForAction
Returns matching cursor shape for a mouse move action. customEvent
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
focusInEvent
focusOutEvent
hoverEnterEvent
hoverLeaveEvent
hoverMoveEvent
inputMethodEvent
inputMethodQuery
isSignalConnected
itemChange
keyPressEvent
keyReleaseEvent
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveActionForPosition
Returns the mouse move behavior for a given position in scene coordinates paint
prepareGeometryChange
receivers
sceneEvent
sceneEventFilter
sender
senderSignalIndex
setRenderContextVariables
timerEvent
updateCanvas
updateMicroFocus
updatePosition
wheelEvent
Signals
Attributes
MoveFramePosition
MoveMapPosition
NoAction
ResizeFrameDown
ResizeFrameLeft
ResizeFrameLeftDown
ResizeFrameLeftUp
ResizeFrameRight
ResizeFrameRightDown
ResizeFrameRightUp
ResizeFrameUp
-
class
MouseMoveAction
¶ Bases:
int
-
MoveFramePosition
= 2¶
-
MoveMapPosition
= 1¶
-
NoAction
= 0¶
-
ResizeFrameDown
= 4¶
-
ResizeFrameLeft
= 5¶
-
ResizeFrameLeftDown
= 9¶
-
ResizeFrameLeftUp
= 7¶
-
ResizeFrameRight
= 6¶
-
ResizeFrameRightDown
= 10¶
-
ResizeFrameRightUp
= 8¶
-
ResizeFrameUp
= 3¶
-
annotation
(self) → QgsAnnotation¶ Returns the item’s annotation.
-
boundingRect
(self) → QRectF¶
-
childEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
cursorShapeForAction
(self, moveAction: QgsMapCanvasAnnotationItem.MouseMoveAction) → Qt.CursorShape¶ Returns matching cursor shape for a mouse move action.
-
customEvent
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
focusInEvent
()¶
-
focusOutEvent
()¶
-
hoverEnterEvent
()¶
-
hoverLeaveEvent
()¶
-
hoverMoveEvent
()¶
-
inputMethodEvent
()¶
-
inputMethodQuery
()¶
-
isSignalConnected
()¶
-
itemChange
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveActionForPosition
(self, pos: Union[QPointF, QPoint]) → QgsMapCanvasAnnotationItem.MouseMoveAction¶ Returns the mouse move behavior for a given position in scene coordinates
-
paint
(self, painter: QPainter)¶
-
prepareGeometryChange
()¶
-
receivers
()¶
-
sceneEvent
()¶
-
sceneEventFilter
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setRenderContextVariables
()¶
-
timerEvent
()¶
-
updateCanvas
()¶
-
updateMicroFocus
()¶
-
updatePosition
(self)¶
-
wheelEvent
()¶
-
class