[Qt]执行cmd命令

要加 /c 参数

QProcess p;
p.start("cmd", QStringList()<<"/c"<<"ping www.bing.com");

 

posted on 2019-03-29 13:26  liujx2019  阅读(1558)  评论(0编辑  收藏  举报

导航