Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.0, 5.9.1, 5.10.0 Alpha
-
None
-
Android
-
-
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.