Quote Originally Posted by norobro View Post
Maybe it's a windows/vs problem. You might try your app on Linux or do somethiing simple like the following to see if it works:

I created a new GUI project with Qt Creator. Used your code in the MainWindow constructor to start a process (a php script that waits for input on stdin) and make connections, put a push button in the form, and created two slots:
Qt Code:
  1. void MainWindow::on_pushButton_clicked(){
  2. disconnect(process,SIGNAL(error(QProcess::ProcessError)),0,0);
  3. process->kill();
  4. }
  5.  
  6. void MainWindow::handleProcessError(QProcess::ProcessError){
  7. qDebug() << process->errorString();
  8. }
To copy to clipboard, switch view to plain text mode 
It silently kills the process as shown. If I comment out the disconnect statement I get "Process crashed".
Hmmm.. Maybe it is a Windows problem since that's essentially what I tried.

What version of Qt are you using?

I will try this in Linux and/or QtCreator tomorrow.