From post 7:
disconnect
(process,
SIGNAL(error
(QProcess::ProcessError)),
0,
0);
disconnect
(process,
SIGNAL(finished
(int exitCode,
QProcess::ExitStatus)),
0,
0);
process->kill();
disconnect(process, SIGNAL(error(QProcess::ProcessError)), 0, 0);
disconnect(process, SIGNAL(finished(int exitCode, QProcess::ExitStatus)), 0,0);
process->kill();
To copy to clipboard, switch view to plain text mode
should not list the name of the int parameter at line 2. Perhaps this leaves the finished() signal still connected?
Have you tried calling QProcess::terminate() (close gracefully) rather than QProcess::kill() (close with mallet)? I cannot imagine many Windows applications that ignore the WM_CLOSE message sent by terminate()
Bookmarks