Skip to content Skip to sidebar Skip to footer

How To Get The Android Keyboard To Appear When Using Qt For Android?

I've created a minimal working example of an Input box I'd like to develop using a QGraphicsItem. Here is the code (I'd figure the .h is not necessary): TestEditor::TestEditor() {

Solution 1:

Well In case anyone is wondering I've found a way to force the android keyboard to show.

QInputMethod *keyboard = QGuiApplication::inputMethod();
keyboard->show();

I've lost the code where I used it so I don't rembember if QGuiApplication can be called from anywhere. But if it can't you can simply sotre the pointer to the keyboard from your main form/class and pass it as a parameter to any sort of required item or class

Post a Comment for "How To Get The Android Keyboard To Appear When Using Qt For Android?"