Re: [Qgis-developer] PyQGIS: how to set Enable snapping on intersection option?

2014-03-21 Thread Gino Pirelli
checking the code I can find that ticking Enable snapping on intersection checkbox activate this callback void QgsSnappingDialog::on_cbxEnableIntersectionSnappingCheckBox_stateChanged( int state ) { QgsProject::instance()-writeEntry( Digitizing, /IntersectionSnapping, state == Qt::Checked );

Re: [Qgis-developer] PyQGIS: how to set Enable snapping on intersection option?

2014-03-21 Thread Gino Pirelli
I solved adding the same peace of code of the C++ apply method in my case the code is project = QgsProject.instance() layerSnappingList = [layer1Id, later2Id] layerSnappingEnabledList = [enabled, enabled] layerSnappingToleranceUnitList = [0, 0]