我想从我的 QT-Programm 中启动一个外部程序。唯一可行的解决方案是:
system("start explorer.exe");
但它只适用于 Windows 并启动命令行片刻。
接下来我尝试的是:
QProcess process;
QString file = QDir::homepath + "file.exe";
process.start(file);
//process.execute(file); //i tried as well
但是什么也没发生。有任何想法吗?