I am developing a plugin for QGIS in Python, I need to connect the sselectionChanged signal emitted when a feature of the layer is selected, I could not find any examples on internet, here is what I have done so far:
QObject.connect(self.iface.mapCanvas(),SIGNAL("selectionChanged(QgsMapLayer)"), self.test)
In the logs of QGIS I get this warning:
Warning: Object::connect: (receiver name: 'MainWindow')
can you help me?
No comments:
Post a Comment