1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

68 lines
1.5 KiB
QML
Raw Normal View History

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
2019-08-03 20:51:11 +08:00
Item {
anchors.fill: parent
Image {
id: src
2020-07-17 00:54:05 +08:00
source: imgPath + "Effect/Girls/girl7.jpeg"
2019-08-03 20:51:11 +08:00
visible: false
}
Grid {
anchors.centerIn: parent
spacing: 40
columns: 2
ALouver {
id: l1
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
ALouver {
id: l2
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directHorizonReverse
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
ALouver {
id: l3
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directVertical
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
ALouver {
id: l4
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directVerticalReverse
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
}
Component.onCompleted: {
ani.start()
}
SequentialAnimation {
id: ani
ScriptAction {script: {l1.restart() } }
PauseAnimation {duration: 1200}
ScriptAction {script: {l2.restart() } }
PauseAnimation {duration: 1200}
ScriptAction {script: {l3.restart() } }
PauseAnimation {duration: 1200}
ScriptAction {script: {l4.restart() } }
}
Button {
anchors.right: parent.right
anchors.bottom: parent.bottom
text: "replay"
onClicked: {
ani.restart()
}
}
}