Class: QgsMapToolPan

class qgis.gui.QgsMapToolPan(canvas: QgsMapCanvas)

Bases: QgsMapTool

constructor

A map tool for panning the map.

See also

QgsMapTool

Parameters

canvas

activate(self)
canvasDoubleClickEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

canvasMoveEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

canvasPressEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

canvasReleaseEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

childEvent()
connectNotify()
customEvent()
deactivate(self)
disconnectNotify()
flags(self) → QgsMapTool.Flags
Return type

QgsMapTool.Flags

gestureEvent(self, e: QGestureEvent) → bool
Parameters

e (QGestureEvent) –

Return type

bool

isDragging(self) → bool

Returns True if a drag operation is in progress.

New in version 3.12.

Return type

bool

isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()
toCanvasCoordinates()
toLayerCoordinates()
toMapCoordinates()
toMapCoordinatesV2()