[Qgis-developer] how to active tool located in standard QGIS toolbar from a plugin

Martin Landa landa.martin at gmail.com
Thu Jun 9 08:47:07 PDT 2016


Hi,

2016-06-09 17:30 GMT+02:00 Eric Goddard <egoddard1010 at gmail.com>:
> Is this in a pyqgis plugin? You should be able to activate the select tool
> with iface.actionSelect().trigger(). You can also use
> actionSelectFreehand(), actionSelectPolygon(), actionSelectRadius(), or
> actionSelectRectange().

perfect, it works like a charm! Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the Qgis-developer mailing list