[Qt]执行cmd命令

要加 /c 参数

QProcess p;
p.start("cmd", QStringList()<<"/c"<<"ping www.bing.com");
原文地址:https://www.cnblogs.com/liujx2019/p/10620690.html