[QGIS-Developer] Signal emitted after feature rotated
Catania, Luke A ERDC-RDE-GRL-VA CIV
Luke.A.Catania at erdc.dren.mil
Tue Jun 11 08:11:14 PDT 2024
Is there a difference in using:
vlayer.editBuffer().geometryChanged() vs vlayer.geometryChanged()
They both work.
From: Jacky Volpes <jacky.volpes at oslandia.com>
Sent: Tuesday, June 11, 2024 5:01 AM
To: Catania, Luke A ERDC-RDE-GRL-VA CIV <Luke.A.Catania at erdc.dren.mil>; qgis-developer at lists.osgeo.org
Subject: Re: [QGIS-Developer] Signal emitted after feature rotated
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<mailto:QGIS-Developer at lists.osgeo.org>
List info: Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked
Unsubscribe: Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240611/aa2472b7/attachment-0001.htm>
More information about the QGIS-Developer
mailing list