Consider using the [QTMessageLog](https://doc.qt.io/qt-5/qmessagelogger.html) to show logging messages.