Important: Please read the Qt Code of Conduct -

Custom QAnimationDriver

  • 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:
    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.

Log in to reply