@artudi54 Tested with gnome on arch and it does the same thing. I'd say this is a bug since d.show() never pulls the window back up.
I would file the bug with Qt.
To work around it I just made sure to call d.hide() before hiding the main window. Then after w.show() just call d.show() again.