I am having trouble to retrieve the console output from an external program. Below, I modified the program so that it is similar to what I have in my program - but with the external program changed to "dir /w".
Parameters<<"/w";
System_Call.start("dir",Parameters);
System_Call.waitForStarted();
X = System_Call.readAll();
System_Call.waitForFinished();
Parameters.clear();
QProcess System_Call(this);
QStringList Parameters;
Parameters<<"/w";
System_Call.start("dir",Parameters);
System_Call.waitForStarted();
QString X;
X = System_Call.readAll();
System_Call.waitForFinished();
Parameters.clear();
To copy to clipboard, switch view to plain text mode
I cannot seem to retrieve the output from this program... what am I doing wrong?
Bookmarks