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

QQuickWindowContainer is not in the right child order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • GUI: Other, Quick: Other
    • None

    Description

      When a QQuickWindowContainer is implicitly created by using child windows with the parent property, the window container won't be in the right child order relative to the parent window's child items.

      import QtQuick
      import QtQuick.Controls
      
      Window {
          id: mainWindow
          width: 300; height: 300
          visible: true
          color: "darkseagreen"
      
          TextField {}
      
          Component.onCompleted: print("children ", children)
      
           Window {
              id: childWindow
              x: 20
              y: 30
              color: "thistle"
              parent: mainWindow
              visible: true
           }
      
           TextField {
              anchors.bottom: parent.bottom
           }
      }
       

       

      Expectation:

      The order of the window's content item children is: TextField, WindowContainer, TextField

      Actual:

      The order of the window's content item children is: TextField, TextField, WindowContainer

       

      This causes issue in the tab focus chain between the window's child items and child windows.

       

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              dorisverria Doris Verria
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes