thanks Jacob seems it works setting all QgsProject parameters as in:
void QgsSnappingDialog::apply() My doubt is that probably should be useful to add a default option on snapping/digitinzing as "snap on intersection background" getting all layer in background by default. I'll try to propose this new config option in Vienna next week... the main reason to have a default behavior is that if you add a new layer I expect snapping should work also with the new layer, but It doesn't work if no one set list of snapping layer in the QgsProject (doing apply in SnappingOptions) thank you Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com) On 21 March 2014 10:16, Jakob Lanstorp <jlanst...@gmail.com> wrote: > Looks like this setting is not exposed in the API of QgsSnapper or > QSettings: > > > http://qgis.org/api/2.2/classQgsSnapper.html#addd2b16ecac193e56f7bdedd6b78ac59 > < > http://qgis.org/api/2.2/classQgsSnapper.html#addd2b16ecac193e56f7bdedd6b78ac59 > > > > and > > from PyQt4.QtCore import QSettings > print QSettings().allKeys() > > > > > ----- > Jakob Lanstorp > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/PyQGIS-how-to-set-Enable-snapping-on-intersection-option-tp5130203p5130271.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer