2020-10-13 17:13:04 +08:00
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Controls 2.2
|
2019-08-03 20:51:11 +08:00
|
|
|
import TaoQuick 1.0
|
2020-10-14 13:33:27 +08:00
|
|
|
|
2020-10-21 16:32:26 +08:00
|
|
|
AnimationBase {
|
2019-08-03 20:51:11 +08:00
|
|
|
anchors.fill: parent
|
|
|
|
Image {
|
|
|
|
id: src
|
2020-07-17 00:54:05 +08:00
|
|
|
source: imgPath + "Effect/Girls/girl4.jpeg"
|
2019-08-03 20:51:11 +08:00
|
|
|
visible: false
|
|
|
|
}
|
|
|
|
Grid {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
columns: 2
|
|
|
|
spacing: 40
|
|
|
|
ADiagonal {
|
|
|
|
id: d1
|
2020-07-17 23:46:24 +08:00
|
|
|
width: 250
|
|
|
|
height: 375
|
2020-10-21 14:35:41 +08:00
|
|
|
dir: directFromLeftTop
|
2019-08-03 20:51:11 +08:00
|
|
|
effectSource.sourceItem: src
|
|
|
|
}
|
|
|
|
ADiagonal {
|
|
|
|
id: d2
|
2020-07-17 23:46:24 +08:00
|
|
|
width: 250
|
|
|
|
height: 375
|
2020-10-21 14:35:41 +08:00
|
|
|
dir: directFromRightBottom
|
2019-08-03 20:51:11 +08:00
|
|
|
effectSource.sourceItem: src
|
|
|
|
}
|
|
|
|
ADiagonal {
|
|
|
|
id: d3
|
2020-07-17 23:46:24 +08:00
|
|
|
width: 250
|
|
|
|
height: 375
|
2020-10-21 14:35:41 +08:00
|
|
|
dir: directFromRightTop
|
2019-08-03 20:51:11 +08:00
|
|
|
effectSource.sourceItem: src
|
|
|
|
}
|
|
|
|
ADiagonal {
|
|
|
|
id: d4
|
2020-07-17 23:46:24 +08:00
|
|
|
width: 250
|
|
|
|
height: 375
|
2020-10-21 14:35:41 +08:00
|
|
|
dir: directFromLeftBottom
|
2019-08-03 20:51:11 +08:00
|
|
|
effectSource.sourceItem: src
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
|
|
ani.start()
|
|
|
|
}
|
|
|
|
SequentialAnimation {
|
|
|
|
id: ani
|
|
|
|
ScriptAction {script: {d1.restart() } }
|
|
|
|
PauseAnimation {duration: 1200}
|
|
|
|
ScriptAction {script: {d2.restart() } }
|
|
|
|
PauseAnimation {duration: 1200}
|
|
|
|
ScriptAction {script: {d3.restart() } }
|
|
|
|
PauseAnimation {duration: 1200}
|
|
|
|
ScriptAction {script: {d4.restart() } }
|
|
|
|
}
|
2020-10-21 16:32:26 +08:00
|
|
|
onReplayClicked: {
|
|
|
|
ani.restart()
|
2019-08-03 20:51:11 +08:00
|
|
|
}
|
|
|
|
}
|