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
相關文章
相關標籤/搜索