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()
panDistanceBearingChanged

Emitted whenever the distance or bearing of an in-progress panning operation is changed.

This signal will be emitted during a pan operation as the user moves the map, giving the total distance and bearing between the map position at the start of the pan and the current pan position.

New in version 3.12: [signal]

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