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