[QGIS-Developer] Setting snapping settings via Python

Laure-Hélène Bruneton lbruneton at alcer.com
Thu Feb 8 04:21:59 PST 2018


Thank you so very much !!!

QgsProject.instance().writeEntry('Digitizing', '/SnappingMode', 'advanced')
QgsProject.instance().snapSettingsChanged.emit()

This did the trick for me. I'm so surprised the answer wasn't easy to
find...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list