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. Stopping all the animation at a time in QML ?
Forum Updated to NodeBB v4.3 + New Features

Stopping all the animation at a time in QML ?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.9k 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.
  • K Offline
    K Offline
    krishkn
    wrote on last edited by
    #1

    I have several animations running and want to pause/stop all the animation at a time, hw could we do this in QML ?

    Thanks
    Krishkn

    Regards,
    Krishkn

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      AFAIK, if you have standalone animations, you have to call stop() on each one of them.
      If you have grouped them into say a single Parallel or Sequential animation (based on your requirement), then you can just call stop() on this animation.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on last edited by
        #3

        Depending on the circumstance, you might also be able to bind the running property of each animation to the same property (e.g. property bool animationsEnabled). Stopping all the animations is then just a matter of setting that property to false.

        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