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 Updated to NodeBB v4.3 + New Features

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 2 Watching
  • 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.
  • stackprogramerS Offline
    stackprogramerS Offline
    stackprogramer
    wrote on last edited by stackprogramer
    #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 last edited by
      #2

      Maybe QSplashScreen?

      1 Reply Last reply
      0
      • stackprogramerS Offline
        stackprogramerS Offline
        stackprogramer
        wrote on last edited by stackprogramer
        #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

        • Login

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