Details
Description
QMouseHandler use a QTimer internally.
No parent is set on it and it is not explicitly destroyed. So as far as I can tell it's leaked.
And the timer doesn't move thread with his parent.
I saw it when trying to load part of my model in a dedicated thread before adding it to the scene.
Even though I move my sub model in the application thread before inserting it into the model I have warnings logs:
QObject::startTimer: Timers cannot be started from another thread
QObject::killTimer: Timers cannot be stopped from another thread
Attachments
For Gerrit Dashboard: QTBUG-62779 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
203485,3 | QMouseHandler: Add a parent to the internal timer | 5.9 | qt/qt3d | Status: MERGED | +2 | 0 |