Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Bring parent window to the front



  • Hi!

    I'm currently developing an application using QtQuick on Windows 7 and latest QtCreator (5.3.3).

    Basically, the parent window has a button that will pop up a child window if clicked. The problem is that I do not know how to bring the parent window back to the front after the child window is spawned. Is this possible or is it a windows problem?

    root.raise() and root.show doesn't work.

    Appreciate if anyone has any knowledge on this issue. Thanks!



  • Hi,

    raise() should work. Just tested it on Ubuntu and doesn't work for me, too. I'd say it's a bug in QtQuick.Window. Couldn't find it on https://bugreports.qt.io yet.



  • Not sure how to explain it but after numerous google search, I think is a windows problem.



  • Interesting: Tried the same with QWidgets. Turns out: Same problem. I'm pretty sure this worked in previous Qt versions.