I am trying to close the identify result dialog which appeared when I select to identify a feature from the active layer. Does someone know how can I do it?

dlg = iface.mainWindow().findChild(QDialog, 'QgsIdentifyResultsBase')

Or you can hide it with dlg.hide().

  • How can i open the dialogue it it's not there ? – Ahsan Mukhtar Mar 2 '19 at 7:57

I am not sure if i get your problem, but the identify tool dialog is only open if you toogle the info button in the toolbox (see left icon in the box below).
If you just wanna select a feature, then use the select feature button (the icon at the right end in the picture). Holding CTRL on your keyboard enables you to select multiple features ad once.

enter image description here

  • OK , do you know how can i can i close the dialog from python plugin? – fkili mohamed Jan 3 '14 at 14: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.