Solved Getting Loading percentage of Program Startup?
-
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?
-
@mrjj running time(some averaging) for each region will better reflect the progress of start-up.
-
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 ?
-
@mrjj Yes, i need to load up a big bunch of files at startup (it´s an editor for a Game database)
-
@mrjj running time(some averaging) for each region will better reflect the progress of start-up.
-
@BDC_Patrick You can launch your app(GUI) quickly while throwing loading of files into a thread.