在Qt中调用CMD命令

代码: [plain]  view plain  copy QProcess p(0);   p.start("cmd", QStringList()<<"/c"<<"ping www.baidu.com");   p.waitForStarted();   p.waitForFinished();   QString strTemp=QString::fromLocal8Bit(p.readAl
相关文章
相关标签/搜索