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

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P3: Somewhat important
    • Resolution: Incomplete
    • Affects Version/s: 5.12.0
    • Fix Version/s: None
    • Component/s: GUI: Window management
    • Labels:
      None
    • Platform/s:
      All, Windows

      Description

      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.

       

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cosminp Cosmin Pancratov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes