这里简单了,直接上代码吧
connect(button,&MPushButton::clicked,[=]() { QProcess *myProcess = new QProcess(this); myProcess->startDetached(exepath); });
关于Qt启动外部程序,已经有大神写好,
https://blog.csdn.net/jan5_reyn/article/details/40080953
详细看这里
这里简单了,直接上代码吧
connect(button,&MPushButton::clicked,[=]() { QProcess *myProcess = new QProcess(this); myProcess->startDetached(exepath); });
关于Qt启动外部程序,已经有大神写好,
https://blog.csdn.net/jan5_reyn/article/details/40080953
详细看这里