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. ColorAnimation does not support easing?
Forum Update on Monday, May 27th 2025

ColorAnimation does not support easing?

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

    Is it possible that ColorAnimation type does not support easing? I can't find anything about it in the docs or on the web, but when I try something like this:

    Rectangle {
      id: background
      anchors.fill: parent
      color: "#162d40"
      ColorAnimation on color {
        loops: Animation.Infinite
        easing.type: Easing.SineCurve
        running: true
        from: "#162d40"
        to: "#255c89"
        duration: 3000
      }
    }
    

    I always get an error "Property assignment expected" in the line with the easing.

    Best Regards,
    Alex

    Developer at Felgo - https://felgo.com/qt

    Develop mobile Apps for iOS & Android with Qt
    Develop Games with Qt

    Felgo is an official Qt Technology Partner

    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