The C++ compiler is for producing executable objects from source code. It has nothing to do with producing or reading the output of that executable object when it is run.

If you run a program with QProcess, as you have been told to do repeatedly over numerous threads, you can read the output of that program in any way you can like: byte by byte, line by line, all at once...