I'm working on a Qt app that creates a lot of threads and QTimers. When it exits, I get the following message printed:
2022-09-27 13:40:22.123 QObject::killTimer: Timers cannot be stopped from another thread
2022-09-27 13:40:22.123 QObject::~QObject: Timers cannot be stopped from another thread
So somewhere in my app, there's a bug where a QTimer is not being stopped properly when the app shuts down, and instead it's getting stopped when its object is automatically destroyed.
Given there's a lot of QTimers in my app, is there some way I can figure out which one is throwing this message? I'd like a better method than laboriously commenting out each QTimer in my app until the message goes away!
(I'm using Qt Creator on macOS to develop and debug the app.)