Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom QAnimationDriver
Qt 6.12 LTS is out! See what's new in the release blog

Custom QAnimationDriver

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    t.artikov
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved