Hi.<div><br></div><div>I hope this is the right place to send this.</div><div><br></div><div>I am working on a plugin in QGIS and want to get a signal when the geometry to a feature(in this case a polyline) in my layer is changed. For example if I use the node tool to drag one of the nodes.</div>
<div><br></div><div>I have posted the question on stackexchange, but I have not got a answer that solved it.</div><div><a href="http://gis.stackexchange.com/questions/29306/how-to-get-a-signal-when-the-geometry-to-a-line-in-qgis-is-changed">http://gis.stackexchange.com/questions/29306/how-to-get-a-signal-when-the-geometry-to-a-line-in-qgis-is-changed</a> </div>
<div><br></div><div>I have tried to use both the old and the new style: </div><div><br></div><div>QObject.connect(self.iface.activeLayer(),SIGNAL("geometryChanged(qint64,QgsGeometry)"),self.changedGeometry)</div>
<div>Here the program don't crash but I don't get the message when the geometry changes</div><div><br></div><div>self.iface.activeLayer().geometryChanged.connect(self.changedGeometry)</div><div>Here I get this error: "TypeError: connect() failed between geometryChanged(qint64,QgsGeometry) and unislot()"<br>
<div><br></div><div><div>def changedGeometry(self, intValue, qgsGeom):</div><div>        QMessageBox.information(self.iface.mainWindow(),"Message", "Changed geometry. intValue: " + str(intValue) + "qgsGeom: " + str(qgsGeom))</div>
</div></div><div><br></div><div>in the top of the file I have these imports:</div><div><div>    from PyQt4.QtCore import *    </div><div>    from PyQt4.QtGui import *   </div><div>    from qgis.core import *   </div><div>
    from qgis.gui import *</div></div><div><br></div><div><br></div><div>Regards</div><div>Stig Henning Fredheim</div><div><br></div><div><br></div>