Qt学习(十一) 在Qt中调用CMD命令示例

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