QSplashscreen on windows XP
-
Hi !
I built an app on windows 7. The app works on windows 7. However when I try to run the app on another computer with windows XP the splashscreen doesn't work but the app still works.
Any idea to make the splashscreen work on XP ?
-
Hi,
What are you using as a splash screen ?
-
I'm using a .jpg file embedded in the resource system.
main body :
@
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":/t.png"));QSplashScreen splash(QPixmap(":/splash.jpg"));
splash.show();MainWindow w;
w.show();splash.finish(&w);
@ -
What version of Qt are you using ?
It seems you are missing this
@app.processEvents();@after showing your splash screen
-
Is this could explain why the splash screen works only on win 7 ?
I'm using Qt 5.1.1 VS 2010
-
The documentation didn't change so you might just be lucky to get the splash screen on Win7.
Add the missing line and you'll see if it behaves better