Unsolved keyboard does not show up
-
Hi
I have a TextField in my android app and when I click on it keyboard does not show up.
I'm using Qt 5.11.3 and Qt Creator 4.8.1 (Community)Could you help me?
Thanks a lot -
Have same issue with Qt 5.15: https://stackoverflow.com/q/64629611/630169 Any solution?
-
Did you tried other keyboard? Maybe your keyboard is broken, or using specific settings.
Try AnySoftKeyboard or search for other keyboard. -
@PawlosCK said in keyboard does not show up:
Did you tried other keyboard? Maybe your keyboard is broken, or using specific settings.
Try AnySoftKeyboard or search for other keyboard.Problem reproducible on 2 devices and different keyboards:
- Samsung and its keyboard
- Huawei and Microsoft Swift Keyboard
https://forum.qt.io/topic/120462/soft-keyboard-is-not-visible-on-android-with-qt-5-15-on-any-input
-
So I have no idea how to fix it
-
So the problem was obvious because of following lines:
#ifdef Q_OS_LINUX qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); #endif
Changed to
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); #endif
And voila: Android keyboard works! :)