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 );

}


writing the option in the project...


there's is a reason why it is not set in QSettings


Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)



On 20 March 2014 20:46, Gino Pirelli <lui...@gmail.com> wrote:

> Hi,
>
> I'm looking how to programmatically set on or off the snapping option:
>
> "Enable snapping on intersection"
>
> I can't find how! It seems not set in QGIS2.conf
>
> without setting this option the QgsSnapper.snapToBackgroundLayers(...)
> method doesn't return snap points.
>
> thank you,
>
> Luigi Pirelli (luigi.pire...@faunalia.it - lui...@gmail.com)
>
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to