Qt QML ColorAnimation.type
我尝试将缓和曲线添加到我的QML ColorAnimation:Qt QML ColorAnimation.type,qt,qml,Qt,Qml,我尝试将缓和曲线添加到我的QML ColorAnimation: ColorAnimation on color{ id: colorAnimIn from: "Yellow" to: "dark gray" duration: 150 easing.type: Easing.InOutQuad } 但是我得到了一个属性分配预期错误。type:行 有什么想法吗?医生说它是正确的…似乎是个错误 ColorAnimation { id: colorAnimI
ColorAnimation on color{
id: colorAnimIn
from: "Yellow"
to: "dark gray"
duration: 150
easing.type: Easing.InOutQuad
}
但是我得到了一个属性分配预期错误。type:行
有什么想法吗?医生说它是正确的…似乎是个错误
ColorAnimation {
id: colorAnimIn
from: "Yellow"
to: "dark gray"
duration: 150
target: root
property: 'color'
easing.type: Easing.InOutQuad
}
他正在工作。似乎期望显式设置属性属性。
因此,它不适用于“on属性”版本。似乎是一个bug
ColorAnimation {
id: colorAnimIn
from: "Yellow"
to: "dark gray"
duration: 150
target: root
property: 'color'
easing.type: Easing.InOutQuad
}
他正在工作。似乎期望显式设置属性属性。
因此,它不适用于“on属性”版本