Is there a difference in using:

vlayer.editBuffer().geometryChanged()  vs vlayer.geometryChanged()

They both work.


From: Jacky Volpes <jacky.vol...@oslandia.com>
Sent: Tuesday, June 11, 2024 5:01 AM
To: Catania, Luke A ERDC-RDE-GRL-VA CIV <luke.a.cata...@erdc.dren.mil>; 
qgis-developer@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@lists.osgeo.org<mailto:QGIS-Developer@lists.osgeo.org>

List info: Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked

Unsubscribe: 
Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
  • [QGIS-Developer] Si... Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
    • Re: [QGIS-Deve... Jacky Volpes via QGIS-Developer
      • Re: [QGIS-... Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer

Reply via email to