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

No activeFocusItem gets set when activating a new Window after prev window was flags = Qt::Popup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.0
    • GUI: Window management
    • None
    • All, Windows

      Example: app has a light-dismiss window that has WindowFlags | Qt.Popup with a button that opens a regular window. Using keyboard to press the button, the new window gets shown and activated but no FocusScope receives focus. Workaround is to click away from the window, then back into the window, then TAB-ing will finally work.

      This is because when the previous window was Qt.Popup, QQuickWindow sets focusReason = PopupClosed, then the code that handles focusInEvent completely no-ops on focusReason=PopupClosed.

       

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

            Unassigned Unassigned
            cosminp Cosmin Pancratov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes