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. Displaying a launch image while the app binary loads?
Forum Updated to NodeBB v4.3 + New Features

Displaying a launch image while the app binary loads?

Scheduled Pinned Locked Moved Mobile and Embedded
9 Posts 5 Posters 3.6k Views 1 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.
  • M Offline
    M Offline
    matti-
    wrote on last edited by
    #1

    Say you have a large (several megs) binary. This loads quite a while, giving the user no visual feedback on what's going on. iOS provides a mechanism for showing a launch image (sort of a splash screen) while the binary is being loaded - do we have any tools for making this happen with Qt?

    All I can think of is making a minimal app binary that would show an image after loading and then proceed to load the actual app from a library :/

    • Matti

    Author of <a href="http://mmark.777-team.org/">MMark13</a>

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      [[doc:QSplashScreen]] ?


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        matti-
        wrote on last edited by
        #3

        Well yes, that's a class for displaying a splash screen from code. Which doesn't help much since the binary needs to be loaded before code execution, if you read what I asked about.

        Author of <a href="http://mmark.777-team.org/">MMark13</a>

        1 Reply Last reply
        0
        • T Offline
          T Offline
          twsimpson
          wrote on last edited by
          #4

          Well obviously Qt can't do anything until the OS loads and starts executing your application, so a small wrapper binary (as you mentioned) would be the only option.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #5

            Which platform are you working on, btw?

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              Sounds like you'd either need a wrapper binary, or you'd need to build up your application more modular. In the latter case, you can make it be quite small and start quickly (and display an image or splash screen if you want), but then dynamically load the bits and pieces that do most of the work as plugins from dynamic libraries.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                matti-
                wrote on last edited by
                #7

                mlong: N9 for development, android (and whatever runs Qt when I deploy) for production.

                andre: yeah. I made a poor design choice early on in the project of compiling data (3D object geometry) into the app as C arrays instead of reading them from data files and now my binary is bloated quite a bit and deadline is getting nearer ;p

                I find the iOS launch image system very elegant (for those of you who do not know iOS: you include image file(s) named according to a certain convention in your App Bundle and the OS displays these images while it loads your app) - and since something like that would be really straightforward to support from the phone OS side, I hope Jolla or someone comes up with something similar in the future!

                • M

                Author of <a href="http://mmark.777-team.org/">MMark13</a>

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mlong
                  wrote on last edited by
                  #8

                  If you were deploying on the N9, then you could use /usr/bin/invoker in your .desktop file to launch your app; it can take a parameter for a splash screen graphic to use while its launching your program. It's very similar to the iOS thing. However, since you're not, I have nothing solid to offer for Android and other platforms, unfortunately.

                  Software Engineer
                  My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    matti-
                    wrote on last edited by
                    #9

                    Oh. Well that's nice then. I'll definitely be publishing for the N9 too but obviously that's not quite the mainstream market. Gotta look into Android/Necessitas for a similar approach. Cheers!

                    Author of <a href="http://mmark.777-team.org/">MMark13</a>

                    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