[Development] Custom QAnimationDriver

Тимур Артиков t.artikov at gmail.com
Thu Apr 10 13:29:13 CEST 2014


Hi,
I'm trying to use Qt Quick for generation image sequence for video
broadcasting.
To do that I need to update Qt Quick scene animations with frame rate of
the output video.
I tried to create class derived from QAnimationDriver and overload the
QAnimationDriver::advance method
which calls QUnifiedTimer::updateAnimationTimers to control current time of
animations.
The problem is that QUnifiedTimer::updateAnimationTimers method is called
from other places
avoiding my AnimationDriver (for example when a new animation is started).
As result, animations are updated with incorrect time.

Here is a link to my test code:
https://dl.dropboxusercontent.com/u/25159021/animation_driver_test.zip
There is the Qt Quick scene with a button and some animated objects.
Moving the mouse cursor over the button leads to jerking of animations.


Thanks in advance, Timur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140410/5b5974a1/attachment.html>


More information about the Development mailing list