Hello,
One requirement of a project I am currently working on (for Maemo) is that the Qt application displays a QSplashScreen when it loads.
My issue is that the application is fairly small and I have written it to load components etc as they are required rather than at start-up. This has lead to quick start up times (which, in a perfect world is what we all strive for!)
How would I intentionally delay the start-up time so that the splash shows for longer?
I have investigated
Quote:
QTimer:: oneShot() (Space added to prevent smiley)
|
however, its prototype dictates that it be connected to a slot. I am running this QSplashScreen from inside
main so this is neither needed nor feasible.
What is the best way to essentially do this:
Code:
Display Splash
Timer for 3 seconds
Close Splash
Display mainWindow
I do not want to use native system calls such as sleep() and would instead rather a Qt based solution.
Thank you for your advice