Qt.inputMethod.show() on Android doesn't work
-
Hi,
I am trying to open the virtual keyboard on the Android using QML and TextInput with Qt.inputMethod.show() and it doesn't work. The onClicked is called properly but the VKB doesn't popup.
My code is as follows:
TextInput {
anchors.fill: parent
id: chatEdit
focus: true
wrapMode: TextEdit.Wrap
activeFocusOnPress: false
MouseArea {
anchors.fill: parent
onClicked: {
chatEdit.forceActiveFocus()
Qt.inputMethod.show()
}
onPressAndHold: Qt.inputMethod.hide()
}
}