我想从我的QT-Programm开始一个外部程序.唯一可行的解决方案是:
system("start explorer.exe");
Run Code Online (Sandbox Code Playgroud)
但它只适用于Windows并且暂时启动命令行.
我试过的下一件事是:
QProcess process;
QString file = QDir::homepath + "file.exe";
process.start(file);
//process.execute(file); //i tried as well
Run Code Online (Sandbox Code Playgroud)
但什么都没发生.有任何想法吗?