diff --git a/main.cpp b/main.cpp index 2643467..8a3d2fc 100644 --- a/main.cpp +++ b/main.cpp @@ -1,13 +1,28 @@ -#include "FSUDAQ.h" - #include #include #include #include #include +#include "FSUDAQ.h" + +#include +#include + +class CustomApplication : public QApplication{ +public: + CustomApplication(int &argc, char **argv) : QApplication(argc, argv) {} + +protected: + bool notify(QObject *receiver, QEvent *event) override{ + qDebug() << "Event:" << event->type() << "Receiver:" << receiver; + return QApplication::notify(receiver, event); + } +}; + int main(int argc, char *argv[]){ - QApplication a(argc, argv); + + CustomApplication a(argc, argv); bool isLock = false; int pid = 0;