Redirect output in QtProcess
Method 1 - process->setStandardOutputFile() with process->start()
Pro:
- Easy to program
Cons:
- Does not work with process->startDetached(). Only works with process->start()
- Only write to the file once the process exit. The file is created but stays empty as long as the process has not completed.
Recent Comments