EDIT 3: When I first asked this question I thought it was because the QTimer
was only firing once; however it turned out to be because I was observing it based on its remainingTime()
member. It turns out the real problem is that remainingTime()
counts down to 0
only once (and the timeout()
signal is indeed firing multiple times).
I have a single-threaded Qt application, which has a timer that needs to be repeatedly called. I also have a progress bar to display how much time is left in the main timer, and the progress bar is updated every 40ms by another timer.