PDA

View Full Version : Show virtual keyboard without user's tap (iOS and Android)



clarksuper0420
23rd November 2015, 01:49
Hi all,

I have a TextInput. I want to show virtual keyboard automatically without user's tap.
I try to google the solution but none of them works to me.
(For example, Qt.inputMethod.show() doesn't work)

Could somebody give me a hint how to do that? Either QML or C++ solution is fine.
Thank you very much.

Best regards,
Clark

anda_skoa
23rd November 2015, 07:28
Have you tried calling forceActiveFocus() on the element?

Cheers,
_

clarksuper0420
23rd November 2015, 08:25
Thank you Anda Skoa!!!! forceActiveFocus() works

Added after 38 minutes:

Hi all,

For those of you who are concerned about this issue.
You could show virtual keyboard for iOS by calling textInput_ID.forceActiveFocus()
And show virtual keyboard for Android by calling Qt.inputMethod.show()

Cheers.......