关于通过在代码中执行shell脚本启动其他应用方法

#include <QProcess>

/*执行shell脚本,通过脚本启动其他应用*/
QString fileName = "zebra_zebra_zebra";
QString command = QString("/home/yk/QtPro/ShowTime/aa.sh %1").arg(fileName);
proc->startDetached(command);

猜你喜欢

转载自www.cnblogs.com/mathyk/p/11470962.html