I have created a simple, single thread, app in Qt6. My sole class creates a couple of timers and prints a qDebug message in the timeout slot. These messages never print.
My class is created before the app.exec() in main, so before the event loop is executed. I suspect this is related. If I create QTimers and connect the timeout signal, before the event loop exec is called, are my signals-slots lost once exec is called? What's the right way to handle this?
Note: This question is about use of QTimer & Eventloop. Not looking for help with specific code. (i.e. theory)