title: Qt avoid warning 'QProcess: destroyed while process still running
body: <p>Simplest code:</p>
  
  <pre><code>void test
  {
      QProcess p;
      p.start("sleep 10");
      p.waitForBytesWritten();
      p.waitForFinished(1);
  }
  </code></pre>
  
  <p>Of course, the process can't be finished before the end of the function, so it displays a warning message:</p>
  
  <pre><code> QProcess: Destroyed while process ("sleep") is still running.
  </code></pre>
  
  <p>I want this message not to be shown - I should destroy the process by myself before end of function, but I can't find how to do this correctly: p.~QProcess(), p.terminate(), p.kill() can't help me.</p>
  
  <p>NOTE: I don't want wait for process execution, just kill it when its running, by myself.</p>