-1

我想在顺序动画中将小部件移动到容器的中心,但它不起作用:

SequentialAnimation {
    PauseAnimation { duration: 1000 }
    AnchorAnimation {
        duration: 1000
        //  ERROR: Cannot assign to non-existent default property 
        AnchorChanges {
            target: widget1
            anchors.horizontalCenter: container.horizontalCenter
        }
    }
....

两者都不:

SequentialAnimation {
    PauseAnimation { duration: 1000 }
    // ERROR: Cannot assign object to list
    AnchorChanges {
        target: widget1
        anchors.horizontalCenter: container.horizontalCenter
    }
    AnchorAnimation {
        duration: 1000
    }
....
4

1 回答 1

0

您不能将AnchorChanges项目放入动画中。您已将其放入状态定义中。

有关更多详细信息,请参阅文档

于 2012-07-17T15:56:29.950 回答