Virtual keyboard do not show when debug build.



  • This cause happens when build with vs+add-on and qtcreator+msvc both at Qt5.12. Even the program will crash when I use "start debugging" with QtCreator. I confirm that it cause by virtual keyboard because I comment out qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); with everything is ok, and virtual keyboard do not show when debug build refers to this. My code as following:

    int main(int argc, char *argv[])
    {
        QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
        qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
        //    QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
    
        QApplication app(argc, argv);
    
        //OTHER CODE
    
        return app.exec();
    }
    

    This is dependency graph of program when debug build and haven't dependency about virtual keyboard.
    0_1557287882966_004a54dc-de7a-4555-9097-92ebdab6b0c5-image.png


  • Qt Champions 2018

    @Crawl.W said in Virtual keyboard do not show when debug build.:

    Even the program will crash when I use "start debugging" with QtCreator.

    Do you have stack trace after the crash?



  • @jsulm Yes,it's disassembler result, can not see something. Whole stack trace as following graph:
    0_1557293694444_fcf7c6f5-0838-45e5-bfdc-053492d9755c-image.png


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.