import QtQuick.Window 2.14
import QtQuick 2.14
Window {
width: 800
height: 480
visible: true
Image {
source: "qrc:/choose.png"
RotationAnimation on rotation {
id : id_totation
from: 0
to : 360
duration: 400
loops: Animation.Infinite
}
}
MouseArea{
anchors.fill: parent
onClicked: {
id_totation.running = !id_totation.running
}
}
}
qml 一个简单的loading加载界面
最新推荐文章于 2023-05-16 21:48:43 发布