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. [Solved]Re position an animated object to previous location
Forum Updated to NodeBB v4.3 + New Features

[Solved]Re position an animated object to previous location

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 902 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.
  • E Offline
    E Offline
    Easter-Egg-X
    wrote on last edited by
    #1

    Hi,

    What I want to do is very simple. Once an animation has been triggered for an object, I want it to go back to the original position.

    Let's say I have something that will move from location y to y+50. Okay, it's moved great, but now it's stuck there. I am intending it to re position itself to location y, but have no clue how to achieve that.

    Anyone that could help me out on this one?

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      You can use "reversible":http://qt-project.org/doc/qt-5/qml-qtquick-transition.html#reversible-prop property in states and transitions.

      157

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Easter-Egg-X
        wrote on last edited by
        #3

        [quote author="p3c0" date="1408965760"]Hi,

        You can use "reversible":http://qt-project.org/doc/qt-5/qml-qtquick-transition.html#reversible-prop property in states and transitions.[/quote]

        Ah, ok. Not as complicated as I would've thought.

        Thx

        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