Here's a snippet of code to explain what I am trying to do
QProcess* myProcess = new QProcess();
myProcess->start("echo test1");
myProcess->waitForFinished();
myProcess->setStandardOutputFile("my_file_path");
myProcess->start("echo test2");
myProcess->waitForFinished();
myProcess->start("echo test3");
Here I want "test1" and "test3" to go to stdout and "test2" to file. However "test3" is also echoed to file. I would to reset the QProcess to redirect out to stdout again after "test2"
How do I do this?
PS: This snippet is not the actual code. It just demonstrates the issue I am facing.

