我试图在我的QML ColorAnimation中添加一条缓和曲线:
ColorAnimation on color{
id: colorAnimIn
from: "Yellow"
to: "dark gray"
duration: 150
easing.type: Easing.InOutQuad
}但是我在easing.type:行上得到了一个预期的属性赋值错误
知道吗?医生说这是正确的..。
发布于 2016-10-18 08:33:25
好像是个虫子。
ColorAnimation {
id: colorAnimIn
from: "Yellow"
to: "dark gray"
duration: 150
target: root
property: 'color'
easing.type: Easing.InOutQuad
}起作用了。它似乎期望显式地设置属性property。因此,它不适用于“on property”-版本。
https://stackoverflow.com/questions/40103027
复制相似问题