auto id = a.applicationPid(); // 获取app进程ID
QProcess p;
QString cmd = QString("taskkill /F /PID %1 /T").arg(QString::number(id));
p.execute(cmd);
p.close();
04-10
2499
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-08
4878
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-08
1763
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-05
2907
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-25