Class: QgsMapCanvasSnappingUtils

class qgis.gui.QgsMapCanvasSnappingUtils(canvas: QgsMapCanvas, parent: QObject = None)

Bases: QgsSnappingUtils

Construct map canvas snapping utils object

  • canvas – map canvas

  • parent – parent object if False it will block until indexing is done

Snapping utils instance that is connected to a canvas and updates the configuration (map settings + current layer) whenever that is changed in the canvas.

childEvent(self, QChildEvent)

Deletes all existing locators (e.g. when destination CRS has changed and we need to reindex)

connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
isSignalConnected(self, QMetaMethod) bool
prepareIndexProgress(self, index: int)

index (int) –

prepareIndexStarting(self, count: int)

count (int) –

receivers(self, PYQT_SIGNAL) int
sender(self) QObject
senderSignalIndex(self) int
timerEvent(self, QTimerEvent)