PDA

View Full Version : General way to end a Qprocess-running executable?



Milardo
5th December 2010, 03:31
Hi,

I have another question. What is a general way to end a QProcess-a running executable (windows os)? Here is part of the code.

commandProcess.start("C:/ffmpeg.exe",args);

What kind of general statement using commandProcess (if possible), can I use to stop the program?

Timoteo
5th December 2010, 04:27
see terminate() and kill().

Milardo
5th December 2010, 06:05
Yes I looked but it doesn't seem to work in my case. Do you have an example?

Added after 27 minutes:

commandProcess.close(); seems to work okay.