Hi,
Take a look at QProcess::finished signal
Hi,
Take a look at QProcess::finished signal
Òscar Llarch i Galán
Oops, my mistake.
I actually need to know when the process A actually started and not finished running.
maybe stateChanged ( QProcess::ProcessState newState ) signal will help you ?
I use startDetached to start the process that will not affect my main application.
I have try all the signal, started, finished, stateChanged... all also not working. No signal is returned.
QProcess::startDetached() is a static method, so there is no QProcess object you can connect to to receive the signal from. Use QProcess::start() instead.
After i use start() to start the process, can I detached it after that?
Why you need to detach the child process? If you don't call the waitForFinished() function the child process will not block your application and you will be able to monitor it well.![]()
The QProcess:startDetached function returns TRUE on success and set pid argument
A camel can go 14 days without drink,
I can't!!!
Bookmarks