Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Splashscreen problem
Qt 6.12 LTS is out! See what's new in the release blog

Splashscreen problem

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.8k 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.
  • ? Offline
    ? Offline
    A Former User
    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
      • ? Offline
        ? Offline
        A Former User
        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.

        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
        • Unsolved