Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can I drive the time of an animation?
Forum Updated to NodeBB v4.3 + New Features

Can I drive the time of an animation?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 895 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.
  • PhrogzP Offline
    PhrogzP Offline
    Phrogz
    wrote on last edited by
    #1

    I have many NumberAnimation. I'd like to control the time of them. (Imagine someone scrubbing the playhead on animation software. As the playhead is set to any time, I want to evaluate many animations at that time and have them applied.)

    Is this possible? (It doesn't look like it from the doc, but the docs have deceived me in the past.)

    If not, is there any other built-in system that can use animation-like curves with data-driven time?

    ? 1 Reply Last reply
    0
    • PhrogzP Phrogz

      I have many NumberAnimation. I'd like to control the time of them. (Imagine someone scrubbing the playhead on animation software. As the playhead is set to any time, I want to evaluate many animations at that time and have them applied.)

      Is this possible? (It doesn't look like it from the doc, but the docs have deceived me in the past.)

      If not, is there any other built-in system that can use animation-like curves with data-driven time?

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Phrogz Hi, and welcome to the Qt forum! I haven't used this myself yet but I think AnimationController is what you are looking for.

      1 Reply Last reply
      1
      • PhrogzP Offline
        PhrogzP Offline
        Phrogz
        wrote on last edited by Phrogz
        #3

        That does look like what I want. It looks like there I may have to have one AnimationController for each Animation, which is annoying but workable. Thanks!

        Edit: Oh! I can have the "single" animation that is controlled be a ParallelAnimation that wraps all the animations I want to control. Yay!

        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 Extensions
        • Unsolved