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

[Android] Window's setFlags() function and displaying Webview makes QApplication focus broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.4.1, 5.5.1, 5.7.0
    • WebView
    • None
    • Android only (version 5 and 6).
      Tested on 3 different tablets (Nexus 9, Pixel C, Sony Xperia).
    • Android

    Description

      On Android platform only (no problem on Windows or iOS),
      if you set flags on your Window object with setFlags function (http://doc.qt.io/qt-5/qwindow.html#flags-prop),
      and if you create and display a Webview,
      then QApplication focus is broken so you can't take focus on components anymore.
      It's strange because in the case of a textfield, the component visually reacts (focus highlight) but the virtual keyboard doesn't appear and QApplication::focusObject remains NULL.

      You can reproduce with the project attached.
      Deploy it on Android, click "set Flags" button then "show Webview" button, now you can't take focus and type in the textfield.

      Attachments

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

        Activity

          People

            stromme Christian
            daveloper David Joassard
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes