Hi 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 as far
QObject.connect(self.iface.mapCanvas(),SIGNAL("selectionChanged(QgsMapLayer)"), self.test)
on the log of qgis I get this warning:
Warning: Object::connect: (receiver name: 'MainWindow')
can you help me? please, thanks in advance