You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wouldn't recommend using timers... if they're used, it's a bit concerning...
If we do need to do something periodically, like reading a message queue from another thread... then it's better to use the Ticker from the framework.
@saintmatthieu Using a timer there was a quick, hacky solution, just to make it work...
But now you're trying to do it right, design the solution as it should be... refactoring...
Activity
kryksyh commentedon Nov 18, 2025
most likely it should be removed in favor of framework's
timer.higorkorsukov commentedon Nov 18, 2025
I wouldn't recommend using timers... if they're used, it's a bit concerning...
If we do need to do something periodically, like reading a message queue from another thread... then it's better to use the Ticker from the framework.
saintmatthieu commentedon Nov 20, 2025
@kryksyh the intention of this abstraction was to provide an opportunity to mock the timer so as to be able to test the classes using it (
AudioMeter).@igorkorsukov what's the difference to using a QTimer, which is what
AudioMeterwas originally using?QTimers usage is very wide-spread.igorkorsukov commentedon Nov 20, 2025
@saintmatthieu Using a timer there was a quick, hacky solution, just to make it work...
But now you're trying to do it right, design the solution as it should be... refactoring...
saintmatthieu commentedon Nov 20, 2025
So is this a 👍 proceed or a 👎 change ? 😄