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

App crashes on debug mode when using qt virtual keyboard on win10(1809, 17763.593), Qt5.12.4



  • Develop Environment:
    OS: Windows 10 1809(17763.593)
    Qt: 5.12.4

    Hi, everyone, I have installed Qt 5.12.4 on my computer, then I try to run the virtual keyboard example:
    0_1561707547655_example.png

    It's ok to run without debugging:
    0_1561707732273_run.png

    But when I want to start debugging, it will crashes when the app have the focus by clicking it, and debug page change to this:
    0_1561708371334_主机.png

    Actually, It's OK before 15 May on Qt 5.8, Qt 5.10, but one day, it crashes when I run my app. I code a test app, a mainwindow with a lineedit

    int main(int argc, char *argv[])
    {
    //    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));          //keyboard
        QApplication a(argc, argv);
        MainWindow w;
        w.show();
        return a.exec();
    }
    

    It's OK to debug when comment out keyboad, but it will crash when uncomment it.

    By the way, I find that it can be started when choose mingw 32-bit show as following:
    0_1561709004422_32.png

    Thanks!!!


Log in to reply