QProcess is not working in linux..
Solved
General and Desktop
-
QProcess pingProcess;
QString exec = "ping";
QStringList params;
params <<"www.google.com";
pingProcess.start(exec,params,QIODevice::ReadOnly);
pingProcess.waitForFinished(-1);
QString p_stdout = pingProcess.readAllStandardOutput();
qDebug()<<p_stdout; -
above is the code ..
-
QProcess pingProcess=new QProcess;