From 8a0503629c4ba622b00333f15a97662d1bdd5651 Mon Sep 17 00:00:00 2001 From: Ryan Tang Date: Fri, 5 Apr 2024 22:47:58 -0400 Subject: [PATCH] added CustomApplication in main.cpp, for debug what cause the slow down --- main.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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;