xupeidong

1、QProcess *p = new QProcess(this);

2、QString str = qApp->applicationDirPath() + "/update.sh";//这是我的shell脚本的目录

3、if(p->startDetached(str))

{

  qDebug() << "success";

}else

{

  qDebug() << "fail";

}

相关文章:

  • 2022-02-05
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-06-04
猜你喜欢
  • 2018-11-30
  • 2021-08-11
  • 2022-01-16
  • 2022-12-23
  • 2021-10-17
  • 2021-05-01
  • 2021-12-19
相关资源
相似解决方案