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

Eric Goddard egoddard1010 at gmail.com
Thu Jun 9 08:30:24 PDT 2016


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().

Eric

On Thu, Jun 9, 2016 at 8:27 AM Martin Landa <landa.martin at gmail.com> wrote:

> Hi all,
>
> I would like to duplicate some of standard QGIS tools in my plugin. In
> other words I have in my plugin an icon for selecting features. Is
> there any way how to automatically activate, after choosing this tool
> from my plugin, standard QGIS tool called 'Select Features by area or
> single click' without code duplication?
>
> Thanks a lot for any kind of hint in advance, Martin
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160609/ddb3e78b/attachment-0001.html>


More information about the Qgis-developer mailing list