Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Qt QML ColorAnimation.type_Qt_Qml - Fatal编程技术网

Qt QML ColorAnimation.type

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

我尝试将缓和曲线添加到我的QML ColorAnimation:

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属性”版本