使用Qprocess的startDetached()方法,当前程序关闭时,调用的外部程序能够照常运行。
QProcess::startDetached(
"C:\\Qt\\1.exe"
,QStringList());
记得在头文件中添加
#include <QProcess>,不然编译不通过
使用Qprocess的startDetached()方法,当前程序关闭时,调用的外部程序能够照常运行。
QProcess::startDetached(
"C:\\Qt\\1.exe"
,QStringList());
#include <QProcess>,不然编译不通过
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。