How to create splash for my android app in Qt!
-
How to create splash for my android app in Qt!
i want to create splash screen in first second of my program,can any help me,thanks for reply -
yes,i succeeded,i use this source in qml for android ,so my problem solved.
import QtQuick 2.0
import QtQuick.Window 2.1Window {
id: splash
color: "transparent"
title: "Splash Window"
modality: Qt.ApplicationModal
flags: Qt.SplashScreen
property int timeoutInterval: 2000
signal timeout
x: (Screen.width - splashImage.width) / 2
y: (Screen.height - splashImage.height) / 2
width: splashImage.width
height: splashImage.heightImage { id: splashImage source: "../shared/images/qt-logo.png" MouseArea { anchors.fill: parent onClicked: Qt.quit() } } Timer { interval: timeoutInterval; running: true; repeat: false onTriggered: { visible = false splash.timeout() } } Component.onCompleted: visible = true
}