[Qgis-developer] setMapTool

Martin Dobias wonder.sk at gmail.com
Mon Nov 11 19:12:03 PST 2013


Hi Denis

you can do that by triggering identify action (will call setMapTool for you):
>>> iface.actionIdentify().trigger()

Martin


On Mon, Nov 11, 2013 at 10:01 PM, Denis Rouzaud <denis.rouzaud at gmail.com> wrote:
> Hi all,
>
> Following Thomas' question, I wonder if it is possible to set a QGIS map
> tool using setMapTool.
>
> The map tools are private variable so I suppose it's impossible for example
> to set the identify map tool as the current tool.
>
> Am I wrong?
>
> Thanks,
>
> Denis
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list