PDA

View Full Version : Killing programs started with QProcess



AndresBarbaRoja
1st June 2011, 09:12
Hi, I'm starting a program with QProcess, but when the calling program dies the called one keeps going. Is there a way to kill that program in case the caller dies?
I can kill it on the caller's destructor, but what if the caller dies? Since the program I have to run is mine, I was thinking in making it check for the PID of the caller by creating a QProcess there. would that work in windows too? Does anyone have a better idea?
Thanks in advance.
A.G.