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

[Windows] Issues with keyboard focus when embedding window

    XMLWordPrintable

Details

    • Windows

    Description

      When testing QTBUG-123455 a related issue was found on Windows.

      Using the same test case

      import QtQuick
      import QtQuick.Controls.Basic
      
      Window {
          id: outerWindow
          width: 800
          height: 600
          visible: true
          color: "orange"
      
          Row {
              anchors.bottom: parent.bottom
              TextField {}
              Button {
                  text: "Click Me"
                  onClicked: console.log("Outer button clicked")
              }
          }
      
          WindowContainer {
              window: Window {
                  width: 640
                  height: 480
                  visible: true
                  color: "cyan"
      
                  Row {
                      anchors.bottom: parent.bottom
                      TextField {}
                      Button {
                          text: "Click Me"
                          onClicked: console.log("Inner button clicked")
                      }
                  }
              }
          }
      }
      

      Click on the text field in the embedded window to give it focus. After this, it becomes impossible to give keyboard focus to the text field in the top level window by clicking on it.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-130754
          # Subject Branch Project Status CR V

          Activity

            People

              morteza.jamshidi Morteza Jamshidi
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change