title: Connect Qprocess signal to slot
body: <p>In the function below, how do I connect the process signal errorOccured to a slot? My goal is to qDebug the errorOccurred property when process.startDetached() runs.</p>
  <pre><code>
  void MainWindow::on_pushButton_clicked()
  {
  
      qDebug() &lt;&lt; &quot;Start Detached&quot;;
      QProcess process;
     
      connect(process, SIGNAL(errorOccurred()), this, 
      SLOT(onSdetacherror()));
  
      process.setProgram(&quot;C:/windows/system32/cmd.exe&quot;);
      process.setArguments({&quot;/k&quot;});
      process.startDetached();
  
  
  }
  
  </code></pre>
  <p>The proper connect syntax is eluding me ...</p>