How to get cmd output in qt?

Viewed 54

How to get cmd output in qt ?

I used the below code to get cmd output with qt.

QProcess pShell;

pShell.start("java");
pShell.waitForFinished();
qWarning() << pShell.readAllStandardOutput();

But , the above code not worked .

0 Answers
Related