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

[Android] Changing WebView visible property breaks TextField/TextInput

    XMLWordPrintable

Details

    • Android

    Description

      I have an interesting problem that only seems to occur on Android for Qt 5.8 and up. I have a TextField and a WebView on the same page. If I turn the visibility of the WebView from false to true, it becomes impossible to get the focus into the TextField to enter text. The android keyboard refuses to show up as well as the blinking cursor.

      In 5.7 it works fine, but I've tested 5.8, 5.9, 5.10 and 5.11 and they all have this issue. iOS does not have this issue, and neither does Linux or Windows. I've tried using other versions for QtQuick and QtQuick.Controls depending on the Qt version, but it made no difference.

      AttachedĀ is a simple example that can be used to replicate the issue. At first you can tap on the TextField and the android keyboard will show up and you can input text. However, if you then press the "Hide" button followed by the "Show" button, you will not be able to tap on the TextField anymore and enter text (for Qt >= 5.8).

      Attachments

        1. main.qml
          0.8 kB
          Peter Holleman
        2. UNReproducible.mp4
          1.71 MB
          Bartlomiej Moskal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            stcorp Peter Holleman
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes