要加 /c 参数
QProcess p; p.start("cmd", QStringList()<<"/c"<<"ping www.bing.com");
posted on 2019-03-29 13:26 liujx2019 阅读(1578) 评论(0) 收藏 举报