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