How do I use mousemove with a timer
-
Hi everyone
I created a widget called "bat" that I am going to use in a brickbreaker game that I need to create for school.
Now I want this widget to follow the mousemovement, just like in a normal brickbreaker game. Our lecturer advised us to use a timer, but is a timer the easiest way, or can i use the mousemove event without a timer? -
I think you do not need a timer.
see "MouseMoveEvent":http://qt-project.org/doc/qt-4.8/qwidget.html#mouseMoveEvent
and "setMouseTracking":http://qt-project.org/doc/qt-4.8/qwidget.html#mouseTracking-prop