<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Ubuntu">Hi Luke,<br>
      <br>
      If you have the vector layer object (say vlayer), you can listen
      to the vlayer.editBuffer().geometryChanged() signal for example.<br>
      But it highly depends on the context.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Jacky Volpes

Ingénieur SIG - Oslandia</pre>
    <div class="moz-cite-prefix"><br>
      Le 11/06/2024 à 01:48, Catania, Luke A ERDC-RDE-GRL-VA CIV via
      QGIS-Developer a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:8d2b2a7e9cca4cb8949589cbf7d2a042@erdc.dren.mil">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-ligatures:none;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Is there a signal emitted that I can have
          code execute after a feature rotation is completed from the
          advanced digitizing toolbar? 
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">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.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">def rotateFeature(self):<o:p></o:p></p>
        <p class="MsoNormal">        # Get all actions<o:p></o:p></p>
        <p class="MsoNormal">        actions =
          iface.mainWindow().findChildren(QAction)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">        # Check the action <o:p></o:p></p>
        <p class="MsoNormal">        action = [x for x in actions if
          x.objectName()=='mActionRotateFeature'][0]<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">        # Run the action<o:p></o:p></p>
        <p class="MsoNormal">        action.trigger()<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Luke<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>