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

    • macOS

      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. 

        1. qmlbug.zip
          4 kB
          Florian Korsakissok
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes