title: QIODevice::read (QProcess): device not open
body: <p>I'm working on QtCreator and I want to use a python script with a xml file from QT Windows.</p>
  
  <p>The file is open, but I can't use the script :</p>
  
  <pre><code>  QString p_stdout = _process.readAll();
  </code></pre>
  
  <p>show me : QIODevice::read (QProcess): device not open</p>
  
  <p>Here is my code :</p>
  
  <pre><code>   // EXEC PYTHON SCRIPT
  
  
      QStringList args = (QStringList() &lt;&lt; script_path &lt;&lt; employesDesires &lt;&lt; file_path) ; // parameters
      QString program = "Python";                                                         // program
  
  
      int exitCode = _process.execute( program, args );
  
      _process.waitForFinished(-1);
  
  //      _process.open(QIODevice::OpenMode()) ;
  
      QString p_stdout = _process.readAll();
  
      QString s = QString::number(exitCode);
  
      ui-&gt;labelResult-&gt;setText(s);
  </code></pre>
  
  <p><strong>exitCode</strong> return <strong>0</strong></p>
  
  <p>I searched on many forums but can't find a solution that I can understand..</p>