Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting Loading percentage of Program Startup?
Forum Updated to NodeBB v4.3 + New Features

Getting Loading percentage of Program Startup?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 344 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.
  • BDC_PatrickB Offline
    BDC_PatrickB Offline
    BDC_Patrick
    wrote on last edited by
    #1

    Hi there..

    I created a little Splashscreen for my Program, that shows basic Infos and a random Image.

    All i need to finish that, would be the current percentage of the programm Startup. Means, how far the program is loaded, so i can add a progress Bar for that Value.

    Is there a Variable for such a value in QT?

    1 Reply Last reply
    0
    • mrjjM mrjj

      Hi
      Nope, not magic value to tell you about that.
      It's 100% defined by the app.
      The operating system already load exthe exe and DLLS it needs so the remaining time solely depends on what you are doing in the app.

      One way is to divide the remaining code into zones and update the Splashscreen pr section.

      so say you have 10 zones then each zone will be 10% but you can slice it any way you wish.

      Do you do some heavy file loading or anything that takes real time ?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #4

      @mrjj running time(some averaging) for each region will better reflect the progress of start-up.

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi
        Nope, not magic value to tell you about that.
        It's 100% defined by the app.
        The operating system already load exthe exe and DLLS it needs so the remaining time solely depends on what you are doing in the app.

        One way is to divide the remaining code into zones and update the Splashscreen pr section.

        so say you have 10 zones then each zone will be 10% but you can slice it any way you wish.

        Do you do some heavy file loading or anything that takes real time ?

        BDC_PatrickB JoeCFDJ 2 Replies Last reply
        1
        • mrjjM mrjj

          Hi
          Nope, not magic value to tell you about that.
          It's 100% defined by the app.
          The operating system already load exthe exe and DLLS it needs so the remaining time solely depends on what you are doing in the app.

          One way is to divide the remaining code into zones and update the Splashscreen pr section.

          so say you have 10 zones then each zone will be 10% but you can slice it any way you wish.

          Do you do some heavy file loading or anything that takes real time ?

          BDC_PatrickB Offline
          BDC_PatrickB Offline
          BDC_Patrick
          wrote on last edited by
          #3

          @mrjj Yes, i need to load up a big bunch of files at startup (it´s an editor for a Game database)

          JoeCFDJ 1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            Nope, not magic value to tell you about that.
            It's 100% defined by the app.
            The operating system already load exthe exe and DLLS it needs so the remaining time solely depends on what you are doing in the app.

            One way is to divide the remaining code into zones and update the Splashscreen pr section.

            so say you have 10 zones then each zone will be 10% but you can slice it any way you wish.

            Do you do some heavy file loading or anything that takes real time ?

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #4

            @mrjj running time(some averaging) for each region will better reflect the progress of start-up.

            1 Reply Last reply
            1
            • BDC_PatrickB BDC_Patrick

              @mrjj Yes, i need to load up a big bunch of files at startup (it´s an editor for a Game database)

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #5

              @BDC_Patrick You can launch your app(GUI) quickly while throwing loading of files into a thread.

              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