You are not logged in.

1

Monday, December 20th 2010, 3:06pm

QSplashScreen help needed

hi,
I am new to QSplashScreen usage. In my application, I need to have a splash. I have done the following.

QPixmap pixmap("D:/projects/splash.png");
QSplashScreen *splash = new QSplashScreen(pixmap);
splash->show();
QTimer::singleShot(2000, &splash, SLOT(afterSplash());

this afterSplash() is my implementation slot. I expect this afterSplash() slot to be called after that 2000msec. I am unable to achieve that.

Please give me some example related to this.

Thanks.

2

Monday, December 20th 2010, 5:32pm

If you change &splash to splash it will work (but i am not sure). But if you want to show some window after the splash screen you can do splash.finish(Your_Widget_Pointer).