qml放在qrc里面,会导致release模式下,qrc中的qml等资源被归类到sources目录中 这是qt为了编译qrc里面的qml中自动的操作,而且我们没有办法通过宏控制,所以舍弃它dev
parent
3df69eab95
commit
5b3b87cf7c
|
Before Width: | Height: | Size: 11 KiB |
@ -1,20 +0,0 @@
|
||||
import QtQuick 2.5
|
||||
import QtGraphicalEffects 1.0
|
||||
Image {
|
||||
Image {
|
||||
id: wheel
|
||||
anchors.centerIn: parent
|
||||
source: "images/pinwheel.png"
|
||||
|
||||
RotationAnimation {
|
||||
id:rotationAnimation
|
||||
target: wheel
|
||||
to:360
|
||||
direction: RotationAnimation.Clockwise
|
||||
duration: 800
|
||||
loops:Animation.Infinite
|
||||
}
|
||||
|
||||
onStatusChanged: if (wheel.status == Image.Ready) rotationAnimation.start()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue