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

The QML InputText not showing native android keyboard when compiled as a WebAssembly and hosted from an Android QML WebView

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0 RC1
    • WebView
    • None
    • I built Qt 6.4 RC1 for android and x64 on my ubuntu 20.04 desktop.

      I am using a Android-12 Lenovo tablet.

    • Android, WebAssembly

    Description

      I have a QML application with a TextInput field compiled as a WebAssembly.

      I have a 2nd QML application with a WebView to show the first WebAssembly compiled for Android.

      If I launch the 2nd QML application on my Android-12 tablet and press on the TextInput field, nothing happens.  My expectation would be that the native Android keyboard would of shown up.

      On the Qt Creator application output I see the following:
      D GlobalPenUtil: handleGlobalPenEvent ACTION_UP isPenView: false
      D GlobalPenUtil: ViewRootImpl handleGlobalPenEvent ACTION_UP is not PenView:
      W InputMethodManager: Ignoring showSoftInput() as view=android.webkit.WebView{94cdc8e VFEDHVC.. ........ 0,0-2000,1092 #1} is not served.

       

      NOTE: If I launch the WebAssembly directly in Android Chrome everything works as expected.

      Attachments

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

        Activity

          People

            lopotter-ext Lorn Potter
            dubi Raymond Dubler
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes