Hi Denis
That's excellent, just what I needed!
Thanks again for your help
Tom
From: Denis Rouzaud [mailto:denis.rouz...@gmail.com]
Sent: 13 November 2013 07:11
To: Thomas Colley; qgis-dev
Subject: Re: [Qgis-developer] Access to Run Feature Action tool from API
Hi Thomas
ember 2013 13:59
*To:* Thomas Colley; qgis-developer@lists.osgeo.org
*Subject:* Re: [Qgis-developer] Access to Run Feature Action tool from API
Ah, ok, sorry.
Not sure you can actually set a predefined map tool using the API
since mFeatureAction is defined in a private class Tools [0].
I woul
s makes sense
Thanks again
Tom
*From:*Denis Rouzaud [mailto:denis.rouz...@gmail.com]
*Sent:* 11 November 2013 12:37
*To:* Thomas Colley; qgis-developer@lists.osgeo.org
*Subject:* Re: [Qgis-developer] Access to Run Feature Action tool from API
Hi Thomas,
This should do the job:
layer.actions().
-developer] Access to Run Feature Action tool from API
Hi Thomas,
This should do the job:
layer.actions().doAction( idx, feature )
QgsAttributeAction is a registry, and you can run/add/remove action from
it.
http://qgis.org/api/classQgsAttributeAction.html
Cheers,
Denis
On 11/11/2013 11:12
Hi Thomas,
This should do the job:
layer.actions().doAction( idx, feature )
QgsAttributeAction is a registry, and you can run/add/remove action from it.
http://qgis.org/api/classQgsAttributeAction.html
Cheers,
Denis
On 11/11/2013 11:12 AM, Thomas Colley wrote:
Hi Everyone
Is there a way t
Hi Everyone
Is there a way to access the Run Feature Action tool from the API?
Most other tools can be switched with
qgis.utils.iface.action...().trigger()
but I can't see any reference to the action tool in there.
In the API I can see actionFeatureAction under QgisApp and
QgisAppInterface bu