How to get STDOUT from a QProcess ?
Get STDOUT from a QProcess:
process.setProcessChannelMode(QProcess::MergedChannels);
print by everything and STDERR output to STDOUT output.
The given statement is:
- In the process of QProcess::MergedChannels: QProcess absorb the output of the running process into the standard output channel stdout. The standard error channel stderr will not accept any data.[…]
Although here,
- The QProcess::ForwardedChannels: QProcess the output of the running process onto the main process and the child will writes the standard output and standard error of the main process.