diff --git a/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp b/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp index 9e38e4cedf290344e164d808affc21206fa57b25..ca3673f670ad5bb8c5925ce32eb129c754cab7e0 100644 --- a/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp +++ b/src/platformsupport/inputcontext/qplatforminputcontextfactory_qpa.cpp @@ -83,8 +83,11 @@ QPlatformInputContext *QPlatformInputContextFactory::create() QPlatformInputContext *ic = 0; QString icString = QString::fromLatin1(qgetenv("QT_IM_MODULE")); - ic = create(icString); + if (icString == QStringLiteral("none")) + return 0; + + ic = create(icString); if (ic && ic->isValid()) return ic;