Qt 6.11 is out! See what's new in the release
blog
QProcess::setStandardOutputFile
General and Desktop
3
Posts
2
Posters
1.1k
Views
1
Watching
-
Hi,
I am using QProcess to start an external program and collect the output on the standard output.
At a later stage I want to store the output of this program into a file and call setStandardOutputFile() for this purpose.
But then I would like again to read the standard output of the process. How can I cancel the call to setStandardOutputFile() and suppress the redirection of the standard output into the file?
BR,
Vincent
-
Try calling setStandardOutputFile(stdout, ...)
It may work i have not tried though.