QgsMapToolIdentifyFeature to trap the
featureIdentified signal, so i can get some information from the identified feature and show it in a panel within my plugin.
here is the code, my problem is the connection between the
featureIdentified signal and my slot is not works:
def onFeatureIdentified(self, ff): print("feature selected") def run(self): f = QgsMapToolIdentifyFeature(self.iface.mapCanvas(), self.iface.activeLayer()) f.featureIdentified.connect(self.onFeatureIdentified)
i don't know that's the problem in my code since it doesn't raise any error.