[Interest] QTimer doesn't fire while resizing windows on Windows

bradley.hughes at nokia.com bradley.hughes at nokia.com
Wed Jun 6 06:26:30 CEST 2012


On Jun 6, 2012, at 2:31 AM, ext Tony Rietwyk wrote:

> Hi, 
> 
> Seeing Thiago's response to a recent QTimer question, prompted me to check
> whether this Windows problem had been circumvented.   He says that on
> Windows QTimer "... deliver events to the Qt event window".  Back in 4.3 and
> WinXP when I first looked at this, I found that the events are not delivered
> while the user is dragging the edges to resize the window.  Is that still
> the case?  Even creating the QTimer to another thread, didn't help.  

This was fixed in 4.6, with several follow up commits in following releases (even into the 4.7 series). If you're using the latest 4.8, you should be fine and not see this problem anymore.

> In my case, it was significant.  The timer was being used to play MIDI
> messages, and the sound would stop!  In the end, I had to use my own loop
> and msleep in the player thread.  
> 
> Hope this saves someone else from making the same mistake. 
> 
> Tony.
> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

--
Bradley T. Hughes
bradley.hughes at nokia.com




More information about the Interest mailing list