If I select a feature and run self.iface.actionIdentify().trigger() it will open the identify window but won't open the selected feature's data, how can I make it open the data of the selected feature?


If you have clicked on a layer in the layers panel and selected one of its features, running the snippet below should work:

l = iface.activeLayer()
f = l.selectedFeatures()[0]
iface.openFeatureForm(l, f)
  • this is close but it is not the answer, is there a way to use the identify tool so it updates everytime a point is selected? – Thriskel Mar 18 '19 at 15:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.