Class: QgsMapCanvasSnappingUtils

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

Bases: QgsSnappingUtils

Construct map canvas snapping utils object

Parameters
  • canvas (QgsMapCanvas) – map canvas

  • parent (QObject = None) – 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()
clearAllLocators()
connectNotify()
customEvent()
disconnectNotify()
isSignalConnected()
prepareIndexProgress(self, index: int)
Parameters

index (int) –

prepareIndexStarting(self, count: int)
Parameters

count (int) –

receivers()
sender()
senderSignalIndex()
timerEvent()