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.
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