Please take a look at the documentation: https://doc.qt.io/qt-5/qprocess.html#details

There you will find how to read from stdout