[QGIS-Developer] Signal emitted after feature rotated

Jacky Volpes jacky.volpes at oslandia.com
Tue Jun 11 02:00:35 PDT 2024


Hi Luke,

If you have the vector layer object (say vlayer), you can listen to the 
vlayer.editBuffer().geometryChanged() signal for example.
But it highly depends on the context.

Regards,

Jacky Volpes

Ingénieur SIG - Oslandia


Le 11/06/2024 à 01:48, Catania, Luke A ERDC-RDE-GRL-VA CIV via 
QGIS-Developer a écrit :
>
> Is there a signal emitted that I can have code execute after a feature 
> rotation is completed from the advanced digitizing toolbar?
>
> I call the rotate tool via the code below and upon completing of the 
> rotate with a mouse click, I want to close the edit session.
>
> def rotateFeature(self):
>
>         # Get all actions
>
>         actions = iface.mainWindow().findChildren(QAction)
>
>         # Check the action
>
>         action = [x for x in actions if 
> x.objectName()=='mActionRotateFeature'][0]
>
>         # Run the action
>
>         action.trigger()
>
> Luke
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240611/d54f5ee4/attachment.htm>


More information about the QGIS-Developer mailing list