我想在顺序动画中将小部件移动到容器的中心,但它不起作用:
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
}
....