QT-Splash screen [ Solved ]
I am using qt 4.5.3 and i want to create a splash screen that disappears after ~5 seconds. i tried using sleep and other such structures, the splash screen activates and disappears on time but the image in the splash doesn't load, like in the case without the timer/sleep. Here is my code from the main.cpp, If anyone has any suggestions please help me out, :
- Created on: May 24, 2012
using namespace std;
int main(int argc, char *argv)
QApplication app(argc, argv);
QSplashScreen *splash = new QSplashScreen(pixmap);
mainWin.show(); splash->finish(&mainWin); return app.exec();
[Edit: Be sure and wrap your code in @ tags; mlong]
Maybe "this code":https://qt-project.org/forums/viewthread/10075/ I posted a while ago is helpful to you.
Thank you. That bit of code just did the trick! and prompt answer too ^^
Glad I could help. Please edit the title of this thread by editing your first post in this thread and add [Solved] to the title. Thank you.