//启动外部程序方法1:QString startCmd = QString("start %1/ADTvision/ADTvision.exe").arg(QCoreApplication::applicationDirPath()); system(startCmd.toLatin1().data());//启动外部程序方法2:QString startPath = QCoreApplication::applicationDirPath() + "/ADTvision/ADTvision.exe";QProcess process;process.execute(startPath);
//启动外部程序方法3:QString startPath = QCoreApplication::applicationDirPath() + "/ADTvision/ADTvision.exe";QDesktopServices::openUrl(QUrl(startPath));
注:外部启动可参考QProcess功能,还有其他方法可以使用