title: Avoid QProcess being killed (QProcess: Destroyed while process is still running)
body: <p>I tried to run this code:</p>
  <pre><code>QProcess process;
  process.setWorkingDirectory(&quot;D:\\Programs\\Qt\\Units\\MyJavaProjects\\StackExp\\target&quot;);
  process.setProgram(&quot;java.exe&quot;);
  process.setArguments({&quot;-jar&quot;,&quot;StackExp-1.0-SNAPSHOT.jar&quot;});
  process.start();
  </code></pre>
  <p>and cmd won't open, and doesn't execute. It just shows this message:</p>
  <pre><code>QProcess: Destroyed while process (&quot;java.exe&quot;) is still running
  </code></pre>
  <p>Please, who knows what's wrong? And how can I run my .jar file using cmd in QProcess?</p>