Important: Please read the Qt Code of Conduct -

ColorAnimation does not support easing?

  • 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,

Log in to reply