Redirect output in QtProcess
Method 1 - process->setStandardOutputFile() with process->start()
- Easy to program
- 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.