1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
import QtQuick 2.4
import QtQuick.Window 2.2
Window {
id: splash
// color: "transparent"
// title: "Splash Window"
// modality: Qt.ApplicationModal
// flags: Qt.SplashScreen
property int timeoutInterval: 2000
signal timeout
width: Screen.width
height: Screen.height
Image {
id: splashImage
anchors.fill: parent
source: "images/splash.jpg"
// MouseArea {
// anchors.fill: parent
// onClicked: Qt.quit()
// }
}
// Timer {
// interval: timeoutInterval; running: true; repeat: false
// onTriggered: {
// visible = false
// splash.timeout()
// }
// }
Component.onCompleted: visible = true
}
|