How to detect that a dialog was closed

How to detect that a dialog window (managed by aqt.DialogManager) was closed?

It can be done by reading private field _dialogs in aqt.DialogManager. But it’s obviously not good.

There is a hook dialog_manager_did_open_dialog for opening a dialog, but nothing for closing.

Thank you!

1 Like

I used the private field a couple of times in add-ons. I don’t think there’s an alternative. A public method/hook would be nice. Maybe you can submit a PR?

3 Likes

Sure, if nobody minds, I’ll prepare it

1 Like