Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Bring parent window to the front
Forum Updated to NodeBB v4.3 + New Features

Bring parent window to the front

Scheduled Pinned Locked Moved QML and Qt Quick
qt quickapplicationwindqml
4 Posts 2 Posters 1.8k Views 2 Watching
  • 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 Offline
    E Offline
    elson
    wrote on 11 Mar 2015, 03:40 last edited by
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 11 Mar 2015, 06:05 last edited by
      #2

      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
      0
      • E Offline
        E Offline
        elson
        wrote on 11 Mar 2015, 07:52 last edited by
        #3

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

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on 11 Mar 2015, 08:39 last edited by
          #4

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

          1 Reply Last reply
          0

          3/4

          11 Mar 2015, 07:52

          • Login

          • Login or register to search.
          3 out of 4
          • First post
            3/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved