Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Bring parent window to the front

    QML and Qt Quick
    qt quick applicationwind qml
    2
    4
    1425
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elson last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • E
          elson last edited by

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

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post