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

Text is not inserted into TextInput on Android, when QQuickWidget is used.

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Commits:
      32218c3243fb4f0da83293c5bd6a663d8e3660ee

      Description

      On android, text written to TextInput is not inserted into text.

      QML code is loaded through the QQuickWidget in the Qt Widgets application:

       

      QQuickWidget *view = new QQuickWidget;
      QUrl url(QLatin1String("qrc:/main.qml"));
      view->setSource(url); 
      

      main.qml:

       

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.3
      
      Item {
          TextInput {
              id: ti
              anchors.left: parent.left
              anchors.top: parent.top
              focus: true
              inputMethodHints: Qt.ImhNone
          }
          Text {
              anchors.left: parent.left
              anchors.top: ti.bottom
              text: ti.text
          }
      }
      

      When pressed key "space", this message is also printed to debug output:

       

      W/IInputConnectionWrapper(24036): getTextBeforeCursor on inactive InputConnection
      W/IInputConnectionWrapper(24036): getCursorCapsMode on inactive InputConnection
      W/IInputConnectionWrapper(24036): getCursorCapsMode on inactive InputConnection
      W/libuntitled.so(24036): (null):0 ((null)): QMetaObject::invokeMethod: No such method QQuickWidget::inputMethodQuery(Qt::InputMethodQuery,QVariant)
      

      There is no possibility to insert any text into these components: TextEdit, TextArea, TextField.

        Attachments

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

          Activity

            People

            Assignee:
            tvete Paul Olav Tvete
            Reporter:
            mikear mikear
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes