Hi! I run a process using the start method of QProcess:
but, is there a way to free the memory after the process has returned? If I delete proc after starting, obviously I get that no process is run... Is there any other way?
Thanks!
Printable View
Hi,
Just connect QProcess::finished signal to your slot, so when the process finish your slot will be executed.
If you want to release the QProcess object after it is no longer required then do it... after it is no longer required, i.e. after it signals finished().
Another way is to pass a parent object to QProcess - it will then be deleted when the parent is deleted.
This is great! Thank you very much!