mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-31 21:22:58 +08:00
39 lines
698 B
QML
39 lines
698 B
QML
import QtQuick 2.12
|
|
import QtQuick.Controls 2.12
|
|
|
|
import "./Page"
|
|
|
|
Item {
|
|
id: root
|
|
width: 1440
|
|
height: 960
|
|
|
|
Splash {
|
|
id: splash
|
|
anchors.fill: parent
|
|
}
|
|
Loader {
|
|
id: loader
|
|
source: "qrc:/Qml/MainPage.qml"
|
|
asynchronous: true
|
|
opacity: 0
|
|
anchors.fill: parent
|
|
Behavior on opacity {
|
|
NumberAnimation { duration: 600 }
|
|
}
|
|
onLoaded: {
|
|
timer.start()
|
|
}
|
|
}
|
|
Timer {
|
|
id: timer
|
|
interval: 600
|
|
repeat: false
|
|
triggeredOnStart: false
|
|
onTriggered: {
|
|
loader.opacity = 1
|
|
splash.visible = false
|
|
}
|
|
}
|
|
}
|