Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT virtual keyboard on embedded linux target



  • I ported the virtual keyboard example on an embedded linux target. But the keystrokes are not populated to the Text fields. On logging; I am getting the error "input method is not set" when I try to use qt virtual keyboard.

    Note : I had set
    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

    before launching the QGuiApplication.

    Any pointers on what could be the issue.



  • Same bug as well as many people for years!!!

    Google search

    Any solution yet?!



  • Found the solution. Following workaround works for me:

    TextArea {
        onActiveFocusChanged: {
            if(activeFocus) {
                Qt.inputMethod.update(Qt.ImQueryInput)
            }
        }
    }
    

    Works with other controls as well.


Log in to reply