Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to create splash for my android app in Qt!
Forum Update on Monday, May 27th 2025

How to create splash for my android app in Qt!

Scheduled Pinned Locked Moved Mobile and Embedded
splashandroid
3 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stackprogramer
    wrote on 3 Oct 2015, 20:11 last edited by stackprogramer 10 Mar 2015, 20:15
    #1

    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

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LuGRU
      wrote on 4 Oct 2015, 11:12 last edited by
      #2

      Maybe QSplashScreen?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stackprogramer
        wrote on 5 Oct 2015, 10:09 last edited by stackprogramer 10 May 2015, 10:10
        #3

        yes,i succeeded,i use this source in qml for android ,so my problem solved.
        import QtQuick 2.0
        import QtQuick.Window 2.1

        Window {
        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.height

        Image {
            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
        

        }

        1 Reply Last reply
        0

        2/3

        4 Oct 2015, 11:12

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved