diff --git a/mainwindow.cpp b/mainwindow.cpp --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -28,6 +28,8 @@ #include #include #include +#include + #include "utils.h" #include "version.h" @@ -598,3 +600,11 @@ void MainWindow::onExportCsv() } } } + +void MainWindow::messageHandler(QtMsgType type, + const QMessageLogContext &context, + const QString &msg) +{ + ui->ptLog->appendPlainText(msg); + std::cerr << msg.toStdString() << std::endl; +}