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

Wrong z order and focus when creating multiple QML windows

    XMLWordPrintable

Details

    • 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

              srutledg Shawn Rutledge
              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