2016-10-18 50 views
1

我試圖緩和曲線添加到我的QML ColorAnimation:QML ColorAnimation easing.type

ColorAnimation on color{ 
    id: colorAnimIn 
    from: "Yellow" 
    to: "dark gray" 
    duration: 150 

    easing.type: Easing.InOutQuad 
} 

,但我得到的easing.type一個屬性分配預期的錯誤:行

任何想法?該文檔指出它是正確的...

回答

0

看起來像一個錯誤。

ColorAnimation { 
    id: colorAnimIn 
    from: "Yellow" 
    to: "dark gray" 
    duration: 150 

    target: root 
    property: 'color' 

    easing.type: Easing.InOutQuad 
} 

正在工作。它似乎預計財產property明確設置。 所以它不適用於'on財產'版本。