2016-10-18 22 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财产'版本。