Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Multiple Animations with different start times
Qt 6.11 is out! See what's new in the release blog

Multiple Animations with different start times

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 492 Views
  • 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.
  • P Offline
    P Offline
    Paxo
    wrote on last edited by
    #1

    Hi everyone,

    i'm trying to find a concept how to animate multiple animations with different start times.
    I always have a known time window in which the animations should start at specific times.

    • The start time and the duration of the animations is always known.
    • The number of animations as well as the start time and duration can vary within each time window.
    • Most animations are GraphicItems (lines, circles, text).
    • There can be QPropertyAnimation, QSequentialAnimationGroup and QParallelAnimationGroup.

    I want to control the animation with a start and stop button. Additionally a slider, to define the current time.

    MultipleAnimations.png

    Builidng everything with QParallelAnimationGroup and QSequentialAnimationGroup
    Since new animations can start during an already running animation, it becomes difficult to interrupt the already running animation and continue with a new parallel animation. It doesn't feel right.

    Alternative approach
    Is there a way to create a "TimeLine" for this problem? Can animations be linked to a timer? Would it be a better approach?

    I'm open for any ideas and hope that someone can help me with the problem

    Cheers,
    Paxo

    1 Reply Last reply
    1
    • P Offline
      P Offline
      Paxo
      wrote on last edited by
      #2

      all good, I can delay animations with QPauseAnimation...

      1 Reply Last reply
      1

      • Login

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