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

Cannot focus TextFields after switching to another window on Mac for apps based on createWindowContainer

    XMLWordPrintable

Details

    • macOS

    Description

      I included a minimally reproducing project.

      Steps to reproduce:

      • Build project on Mac OS X
      • Launch app qmlbug
      • Focus another application
      • Get back to the qmlbug window
      • The text field cannot be focused nor can we modify the text

      NB: this only appears on Mac, and only if the Qml View is embedded inside a QWidget-based application using createWindowContainer.

      NB2: after "breaking" the state of the text field, it can be restored by focusing another widget of the same application. The sample project does not have any other widget so you cannot experiment it, but in my company's application we do and after focusing a DockWidget for example all text fields start working correctly again.

      I am interested in workarounds while waiting for the fix, if they exist. 

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              floriankorsakissok Florian Korsakissok
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes