Cross-Platform Method Of Creating A SplashScreen?



  • I need to display a splashscreen in a cross platform way, Qt Splashscreen does not work on mobile platforms, is there another way? If not cross platform, is there a way to display a splash screen in android at least? For those wondering, Qsplashscreen hangs a black screen on android, but works fine for windows, under my conditions at least.



  • Hi. There's no way to have a cross platform splash screen. For Android, there's a way provided by Qt. Add this tag to your manifest:

    <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash"/>
    

    It will be shown before your activity. For iOS, you should not, but you can use the launch images for that.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.