Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37440

Wrong z order and focus when creating multiple QML windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.4.0
    • Labels:
      None
    • Commits:
      0f1ac3fdc730341418470e6feb18a7c8e78e84ed

      Description

      When creating multiple windows with the QtQuick Window API, transient children are created before the parents and thus the windows have a wrong focus and z-order.

      In following example "win1" will have a higher z-order than "win2" and the keyboard focus. The expected behaviour would be that "win2" would be on top and has the focus.

      Window {
        id: win1
        visible: true
      
        Window {
          id: win2
          visible: true
        }
      }
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              bomb3rman Fabian Bumberger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes