Class: QgsMapToolEmitPoint

class qgis.gui.QgsMapToolEmitPoint(canvas: QgsMapCanvas)

Bases: QgsMapTool

constructor

A map tool that simply emits a point when clicking on the map. Connecting a slot to its canvasClicked() signal will let you implement custom behavior for the passed in point.

Parameters

canvas

canvasClicked

signal emitted on canvas click [signal]

Parameters
  • point (QgsPointXY) –

  • button (Qt.MouseButton) –

canvasMoveEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

canvasPressEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

canvasReleaseEvent(self, e: QgsMapMouseEvent)
Parameters

e (QgsMapMouseEvent) –

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

QgsMapTool.Flags

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