title: A Simple QProcess
body: <p>Hi im trying to run a simple QProcess, here is my very basic code.</p>
  
  <pre><code>QDir("/home/brett/sweetback");
          QProcess process;
          process.start("mysqldump -uroot -ppass sweetassurfwear &gt; sweetassurfwear.sql");
          process.waitForFinished(-1);
  </code></pre>
  
  <p>What is wrong with this?
  I have chaged the code to this </p>
  
  <pre><code>QString program = "/usr/bin/mysqldump";
  QStringList arguments;
  arguments &lt;&lt; "-uroot";
  arguments &lt;&lt; "-ppass";
  arguments &lt;&lt; "--routines";
  arguments &lt;&lt; "sweetassurfwear &gt; sweetassurfwear.sql";
  //All the other arguments
  
  QProcess *myProcess = new QProcess(parent);
  myProcess-&gt;start(program, arguments);
  </code></pre>
  
  <p>Im now getting the error</p>
  
  <pre><code>sweetgui2.cpp: In member function ‘void SweetGuiForm::on_buttonBox_accepted()’:
  sweetgui2.cpp:88: error: no matching function for call to ‘QProcess::QProcess(&lt;unresolved overloaded function type&gt;)’
  /usr/include/QtCore/qprocess.h:219: note: candidates are: QProcess::QProcess(const QProcess&amp;)
  /usr/include/QtCore/qprocess.h:129: note:                 QProcess::QProcess(QObject*)
  make: *** [sweetgui2.o] Error 1
  </code></pre>
  
  <p>I have changed the line </p>
  
  <pre><code>QProcess *myProcess = new QProcess(parent);
  to
  QProcess *myProcess = new QProcess(this);
  </code></pre>
  
  <p>It now compiles but im still not getting a dump file</p>