[Qgis-developer] Python: how to set snapping options?
marco.hugentobler at sourcepole.ch
Wed Nov 23 11:02:29 EST 2011
It can be done using QgsProject::instance()->writeEntry(...). You may
look in the class src/app/qgssnappingdialog.cpp how QGIS does it.
On 23.11.2011 14:42, Andreas Neumann wrote:
> I'd like to programmatically set the snapping option I just added with
> my python plugin:
> * turn on snapping within its own layer
> * set avoid intersection
> Does anyone have a hint or code how to accomplish this?
More information about the Qgis-developer