Skip to content Skip to sidebar Skip to footer

Soft Keyboard Is Not Visible On Android With Qt 5.15 On Any Input

We migrated from 5.12.9 to 5.15.2 and now soft Android keyboard is not visible (does not popup) on active focus for any of our inputs or text fields. Is it a bug (QTBUG-88069) or s

Solution 1:

So the problem was obvious because of following lines:

#ifdef Q_OS_LINUXqputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
#endif

Changed to

#ifdefined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
#endif

as on Android both constants are defined: Q_OS_LINUX and Q_OS_ANDROID. And voila: Android keyboard works! :)

Post a Comment for "Soft Keyboard Is Not Visible On Android With Qt 5.15 On Any Input"