进程关闭外部程序:QString KillStr = "taskkill /f /im main.exe";QProcess *Process = new QProcess(this);Process->start(KillStr);