Program Listing for File Splash.qml¶
↰ Return to documentation for file (src/qml/components/Splash.qml
)
import QtQuick 2.11
import QtQuick.Window 2.11
Window {
id: splash;
property int timeoutInterval: 500;
property int frameBorder: 50;
property alias timerRun: timer.running;
signal timeout;
title: "Splash Window";
modality: Qt.ApplicationModal;
flags: Qt.SplashScreen;
width: splashImage.width + frameBorder;
height: splashImage.height + frameBorder;
x: (Screen.width - splashImage.width + frameBorder) / 2;
y: (Screen.height - splashImage.height + frameBorder) / 2;
color: "#303030"; // Undocumentable entity (bug in doxyqml?)
Image {
id: splashImage;
source: "icons/LogoFkinNegative.png";
anchors.centerIn: parent;
}
Timer {
id: timer;
interval: timeoutInterval;
running: false;
repeat: false;
onTriggered:
{
visible = false;
splash.timeout();
}
}
Component.onCompleted: { visible = true; }
}