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. Spring Animation
Forum Updated to NodeBB v4.3 + New Features

Spring Animation

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

    Can spring animation be applied to changes in any property such as "color",etc.. Or is it limited to only the change in "x" or "y"?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      For color, there is ColorAnimation: https://doc.qt.io/qt-5/qml-qtquick-coloranimation.html

      Since color is represented by numbers, though, it is probably possible to animate spring animation over some number property, then translate that to color (using Qt.rgb() for example).

      (Z(:^

      1 Reply Last reply
      3

      • Login

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