I have a similar program(see below), and I do add "config += console" for qmake. but I can only get the first output but not the second output.
Probably QProcess::waitForFinished() fails and the execution flow doesn't reach the second part of main(). Create QCoreApplication (or QApplication) instance at the beginning of main().
Bookmarks