Qt Execute external program

前端 未结 4 828
感动是毒
感动是毒 2020-12-08 19:53

I want to start an external program out of my QT-Programm. The only working solution was:

system(\"start explorer.exe\");

But it is only wo

4条回答
  •  一个人的身影
    2020-12-08 20:54

    If you want your program to wait while the process is executing, you can use

    QProcess::execute(file);
    

    instead of

    QProcess process;
    process.start(file);
    

提交回复
热议问题