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".

Qt Code:
  1. QProcess System_Call(this);
  2. QStringList Parameters;
  3.  
  4. Parameters<<"/w";
  5.  
  6. System_Call.start("dir",Parameters);
  7. System_Call.waitForStarted();
  8. X = System_Call.readAll();
  9. System_Call.waitForFinished();
  10. 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?