Qt.inputMethod.show() on Android doesn't work
Mobile and Embedded
1
Posts
1
Posters
712
Views
1
Watching
-
wrote on 17 Sept 2015, 02:06 last edited by philippeb8
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()
}
}
1/1