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 ([email protected] - [email protected])
On 20 March 2014 20:46, Gino Pirelli <[email protected]> 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 ([email protected] - [email protected])
>
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer