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

Item or Rectangle not able to gain focus after Drawer is closed

    XMLWordPrintable

Details

    • 78b35d3c3 (dev), 03aa4df05 (6.5)

    Description

      Inside a QQuickView the focus is set to the root Item. If a Drawer is opened and closed the root Item is unable to gain the focus by clicking the Item (or a child Rectangle). A button is able to gain the focus and since it's not accepting the key events they are propagated to the root Item which can then consume them.

      To reproduce the issue, please run the attached example:

      1. The initial focus is not on the root Item, try pressing the key and nothing is printed in the output
      2. Clicking the QML scene gains the focus to the root Item and the key presses can be seen in the output.
      3. Click the button to open the Drawer and then close it. 
      4. Clicking the root Item or the Rectangle does not gain the active focus for them, thus the key presses cannot be detected.
      5. Clicking the button "Do Nothing" gives the active focus to the button and the key events are propagated to the root Item.

      The expected result is that the root Item would gain the active focus after closing the Drawer. 

      Attachments

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

        Activity

          People

            santhoshkumar Santhosh Kumar Selvaraj
            tuomas.vaarala Tuomas Vaarala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes