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);
    ... // Loading some items
    splash->showMessage("Loaded modules");


    ... // Establishing connections
    splash->showMessage("Established connections");

    QMainWindow window;
    return app.exec();
    the images are stored in the QT resource file as /images/splash.png

    any 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.