Note to qt2-win32 Timer problems

Ralf Habacker kde-cygwin@mail.kde.org
Sat, 15 Mar 2003 01:13:50 +0100


Hi all,

I have heard from problems qt2-win32 port and timers. The shoots in tutorial 14
only runs, if the mouse moves over the windows od a key is pressed. Additional
the dclock example shows this effect very good.

After diving a little deeper in this problem I recognized, that the application
does not get any timer related messages, which could be used the deal the timer
related stuff.

Below one can find a proposal for an solution based on the TIMER-API from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/Win
dowsUserInterface/Windowing/Timers/UsingTimers.asp

1. Create a generic Windows timer [ use SetTimer() ] into
qapplication_win32.cpp:initTimers() to enable WM_TIMER events and deal the q....
related timer in processMessage and friends. The interval may be 0,1 sec or so.

2. Destroy the timer in cleanupTimers();

I've checked in this solution.

T14 and dclock are working well now.

Ralf