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. animation does not work as excepted in qml
Qt 6.11 is out! See what's new in the release blog

animation does not work as excepted in qml

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

    hi, i used below code to show a message with sequential animation

            SequentialAnimation
            {
                id: showMessage
                loops: 1
    
                PropertyAnimation
                {
                    target: rctMessage
                    property: "x"
                    from: root.width + 50
                    to: xPosition
                    duration: 500
                }
    
                PauseAnimation { duration: 2000 }
    
                PropertyAnimation
                {
                    target: rctMessage
                    property: "x"
                    duration: 500
                    to: root.width - 500
                }
    }
    

    when pause animation finishes second propertayanimation runs fine but not animated i don't really what is wrong with this |:
    NOTE: sometimes second animation works fine and sometimes not

    1 Reply Last reply
    0
    • MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2
      This post is deleted!
      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