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. Sequentialanimation inside a Parallelanimation

Sequentialanimation inside a Parallelanimation

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 2.1k 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.
  • Q Offline
    Q Offline
    qtd1d1
    wrote on last edited by
    #1

    Is it possible to define a sequentialanimation inside a parallelanimation? Or does somebody know another way to do it? I would like to do something like this:

    @
    ParallelAnimation {
    id: scaleoutLeft
    running: scaleout

                NumberAnimation { target: item; property: "x"; to: 100; duration: 1000 }
                
                SequentialAnimation {
                PropertyAction { target: item; property: "smooth"; value: false }
                NumberAnimation { target: item; property: "scale"; to: 1; duration: 1000 }
                PropertyAction { target: item; property: "smooth"; value: true }
                }
            }
    

    @

    Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ludde
      wrote on last edited by
      #2

      Yes it's possible to do that. Have you given it a try? I cannot see any reason for it not to work as expected.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qtd1d1
        wrote on last edited by
        #3

        Thanks. I tried it about 2 weeks ago without success, but now it's easy .. :)

        What I did is:

        @ParallelAnimation{
        ...
        SequentialAnimation{
        ...
        ParallelAnimation { ... }
        }
        }@

        Do you think this affects somehow the performance?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          ludde
          wrote on last edited by
          #4

          If you only have one animation inside a ParallellAnimation or SequentialAnimation I'm not sure it actually does anything useful... does it?

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qtd1d1
            wrote on last edited by
            #5

            Well I need it to turn off the smooth parameter during a moveAnimation of an image. So yes, I think its useful ;)

            1 Reply Last reply
            0
            • L Offline
              L Offline
              ludde
              wrote on last edited by
              #6

              Right, you are using PropertyAction, which really is an animation, without duration. Without the whole code it's a bit difficult to understand why you need all three levels of animations, though.

              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