I'm building a plugin in python that manage some lists of wkt from different intern sources (web services, bd, etc..). I can display every source without any problem.
For displaying them, I use a QVectorLayer of type "memory" (in qgis 1.7.4 by the way).
I would like the user to be able to edit a feature (the geometry) when it's possible, and I would change the value according to the source.
So I was very interested by:
void QgsVectorLayer::geometryChanged(QgsFeatureId fid, QgsGeometry &geom)
But when I write this:
layer.geometryChanged.connect(self._geometryChanged) [...] @QtCore.pyqtSlot() def _geometryChanged(self, fid, geom): [...]
I've got this error:
AttributeError: 'QgsVectorLayer' object has no attribute 'geometryChanged'
Any idea How I could do it ? Is there any better doc about inner elements in QGis ?