Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Splashscreen problem
Forum Updated to NodeBB v4.3 + New Features

Splashscreen problem

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tunde
    wrote on last edited by
    #1

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

    any amendment i need to make. thanks

    [Edit: Code highlighting. / Vasiliy Sorokin]

    1 Reply Last reply
    0
    • I Offline
      I Offline
      IrQX
      wrote on last edited by
      #2

      solution same as "here":http://developer.qt.nokia.com/forums/viewthread/1943/

      P.S. don't create clones of your topic, please.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        Put the code in two @-markers or use the code button in the editor, please. The code is quite unreadable this way.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved