Subgroup: Map
Class: QgsMapCanvasAnnotationItem¶
-
class
qgis.gui.
QgsMapCanvasAnnotationItem
¶ Bases:
PyQt5.QtCore.QObject
,qgis._gui.QgsMapCanvasItem
An interactive map canvas item which displays a QgsAnnotation.
New in version 3.0: Methods
acceptDrops
acceptHoverEvents
acceptTouchEvents
acceptedMouseButtons
advance
annotation
Returns the item’s annotation. blockSignals
boundingRect
boundingRegion
boundingRegionGranularity
cacheMode
childEvent
childItems
children
childrenBoundingRect
clearFocus
clipPath
collidesWithItem
collidesWithPath
collidingItems
commonAncestorItem
connectNotify
contains
contextMenuEvent
cursor
cursorShapeForAction
Returns matching cursor shape for a mouse move action. customEvent
data
deleteLater
deviceTransform
disconnect
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
effectiveOpacity
ensureVisible
ensureVisible(self, float, float, float, float, xMargin: int = 50, yMargin: int = 50) event
eventFilter
filtersChildEvents
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] flags
focusInEvent
focusItem
focusOutEvent
focusProxy
grabKeyboard
grabMouse
graphicsEffect
group
hasCursor
hasFocus
hide
hoverEnterEvent
hoverLeaveEvent
hoverMoveEvent
inherits
inputMethodEvent
inputMethodHints
inputMethodQuery
installEventFilter
installSceneEventFilter
isActive
isAncestorOf
isBlockedByModalPanel
isClipped
isEnabled
isObscured
isObscured(self, float, float, float, float) -> bool isObscuredBy
isPanel
isSelected
isSignalConnected
isUnderMouse
isVisible
isVisibleTo
isWidget
isWidgetType
isWindow
isWindowType
itemChange
itemTransform
keyPressEvent
keyReleaseEvent
killTimer
mapFromItem
mapFromItem(self, QGraphicsItem, QRectF) -> QPolygonF mapFromParent
mapFromParent(self, QRectF) -> QPolygonF mapFromScene
mapFromScene(self, QRectF) -> QPolygonF mapRectFromItem
mapRectFromItem(self, QGraphicsItem, float, float, float, float) -> QRectF mapRectFromParent
mapRectFromParent(self, float, float, float, float) -> QRectF mapRectFromScene
mapRectFromScene(self, float, float, float, float) -> QRectF mapRectToItem
mapRectToItem(self, QGraphicsItem, float, float, float, float) -> QRectF mapRectToParent
mapRectToParent(self, float, float, float, float) -> QRectF mapRectToScene
mapRectToScene(self, float, float, float, float) -> QRectF mapToItem
mapToItem(self, QGraphicsItem, QRectF) -> QPolygonF mapToParent
mapToParent(self, QRectF) -> QPolygonF mapToScene
mapToScene(self, QRectF) -> QPolygonF metaObject
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveActionForPosition
Returns the mouse move behavior for a given position in scene coordinates moveBy
moveToThread
objectName
opacity
opaqueArea
paint
panel
panelModality
parent
parentItem
parentObject
parentWidget
pos
prepareGeometryChange
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
rect
returns canvas item rectangle in map units removeEventFilter
removeSceneEventFilter
resetTransform
rotation
scale
scene
sceneBoundingRect
sceneEvent
sceneEventFilter
scenePos
sceneTransform
scroll
sender
senderSignalIndex
setAcceptDrops
setAcceptHoverEvents
setAcceptTouchEvents
setAcceptedMouseButtons
setActive
setBoundingRegionGranularity
setCacheMode
setCursor
setData
setEnabled
setFiltersChildEvents
setFlag
setFlags
setFocus
setFocusProxy
setGraphicsEffect
setGroup
setInputMethodHints
setObjectName
setOpacity
setPanelModality
setParent
setParentItem
setPos
setPos(self, float, float) setProperty
setRect
sets canvas item rectangle in map units setRenderContextVariables
setRotation
setScale
setSelected
setToolTip
setTransform
setTransformOriginPoint
setTransformOriginPoint(self, float, float) setTransformations
setVisible
setX
setY
setZValue
shape
show
signalsBlocked
stackBefore
startTimer
thread
timerEvent
toCanvasCoordinates
transformation from map coordinates to screen coordinates toGraphicsObject
toMapCoordinates
transformation from screen coordinates to map coordinates toolTip
topLevelItem
topLevelWidget
tr
transform
transformOriginPoint
transformations
type
ungrabKeyboard
ungrabMouse
unsetCursor
update
update(self, float, float, float, float) updateCanvas
updateMicroFocus
updatePosition
wheelEvent
window
x
y
zValue
Attributes
DeviceCoordinateCache
ItemAcceptsInputMethod
ItemChildAddedChange
ItemChildRemovedChange
ItemClipsChildrenToShape
ItemClipsToShape
ItemContainsChildrenInShape
ItemCoordinateCache
ItemCursorChange
ItemCursorHasChanged
ItemDoesntPropagateOpacityToChildren
ItemEnabledChange
ItemEnabledHasChanged
ItemFlagsChange
ItemFlagsHaveChanged
ItemHasNoContents
ItemIgnoresParentOpacity
ItemIgnoresTransformations
ItemIsFocusable
ItemIsMovable
ItemIsPanel
ItemIsSelectable
ItemMatrixChange
ItemNegativeZStacksBehindParent
ItemOpacityChange
ItemOpacityHasChanged
ItemParentChange
ItemParentHasChanged
ItemPositionChange
ItemPositionHasChanged
ItemRotationChange
ItemRotationHasChanged
ItemScaleChange
ItemScaleHasChanged
ItemSceneChange
ItemSceneHasChanged
ItemScenePositionHasChanged
ItemSelectedChange
ItemSelectedHasChanged
ItemSendsGeometryChanges
ItemSendsScenePositionChanges
ItemStacksBehindParent
ItemToolTipChange
ItemToolTipHasChanged
ItemTransformChange
ItemTransformHasChanged
ItemTransformOriginPointChange
ItemTransformOriginPointHasChanged
ItemUsesExtendedStyleOption
ItemVisibleChange
ItemVisibleHasChanged
ItemZValueChange
ItemZValueHasChanged
MoveFramePosition
MoveMapPosition
NoAction
NoCache
NonModal
PanelModal
ResizeFrameDown
ResizeFrameLeft
ResizeFrameLeftDown
ResizeFrameLeftUp
ResizeFrameRight
ResizeFrameRightDown
ResizeFrameRightUp
ResizeFrameUp
SceneModal
Type
UserType
destroyed
destroyed(self, QObject = None) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
-
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