title: QProcess passing (shell) arguments
body: <p>I'm trying to read the output of a shell script in Qt. However, passing an argument to the shell script doesn't work, as it is ignored completely. What am I doing wrong in the following excerpt?</p>
  
  <pre><code>QProcess *process = new QProcess;
  process-&gt;start("sh", QStringList() &lt;&lt; "-c" &lt;&lt; "\"xdotool getactivewindow\"");
  process-&gt;waitForFinished();
  QString output = process-&gt;readAllStandardOutput();
  target = output.toUInt();
  </code></pre>
  
  <p>I have looked at several other threads and tried solutions such as</p>
  
  <pre><code>process-&gt;start("sh", QStringList() &lt;&lt; "-c" &lt;&lt; "xdotool getactivewindow");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>process-&gt;start("sh", QStringList() &lt;&lt; "-c" &lt;&lt; "xdotool" &lt;&lt; "getactivewindow");
  </code></pre>
  
  <p>but none worked.</p>