Rectangle{
color: Qt.rgba(0.8/(parent.mvalue+1),0.8/(parent.mvalue+1),0.8/(parent.mvalue+1),1.0);
width: 40;
height: 40;
Text{
id:txt;
property int cout: 0;
SequentialAnimation on font.letterSpacing {
loops: Animation.Infinite;
NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 }
ScriptAction {
script: {
console.log((txt.cout++) +"执行完一次动画调用 ScriptAction script函数");
}
}
}
//opacity And on font.letterSpacing串行执行
SequentialAnimation on opacity {
loops: Animation.Infinite;
NumberAnimation { from: 1; to: 0; duration: 2600 }
PauseAnimation { duration: 400 }
}
text:parent.parent.mvalue+1;
color: "white"
font.pixelSize: 18
anchors.centerIn: parent
}
}
串行动画
最新推荐文章于 2023-01-11 16:57:48 发布