Splashscreen problem
-
i created a splashscreen for my application; however, the QT4 resource mechanism is not picking up my images and my splashcreen does not appear
@int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPixmap pixmap(":/images/splash.png");
QSplashScreen *splash = new QSplashScreen(pixmap);
splash->show();
... // Loading some items
splash->showMessage("Loaded modules");qApp->processEvents();
... // Establishing connections
splash->showMessage("Established connections");qApp->processEvents();
QMainWindow window;
window.show();
splash.finish(&window);
return app.exec();
}
@
the images are stored in the QT resource file as /images/splash.pngany amendment i need to make. thanks
[Edit: Code highlighting. / Vasiliy Sorokin]
-
solution same as "here":http://developer.qt.nokia.com/forums/viewthread/1943/
P.S. don't create clones of your topic, please.
-
Put the code in two @-markers or use the code button in the editor, please. The code is quite unreadable this way.