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. QSplashscreen on windows XP
Forum Updated to NodeBB v4.3 + New Features

QSplashscreen on windows XP

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.6k 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
    Tom C
    wrote on 24 Sept 2013, 08:49 last edited by
    #1

    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 ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Sept 2013, 21:26 last edited by
      #2

      Hi,

      What are you using as a splash screen ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tom C
        wrote on 25 Sept 2013, 14:14 last edited by
        #3

        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);
        @

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Sept 2013, 15:00 last edited by
          #4

          What version of Qt are you using ?

          It seems you are missing this
          @app.processEvents();@

          after showing your splash screen

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Tom C
            wrote on 25 Sept 2013, 15:08 last edited by
            #5

            Is this could explain why the splash screen works only on win 7 ?

            I'm using Qt 5.1.1 VS 2010

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 25 Sept 2013, 15:21 last edited by
              #6

              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

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              5/6

              25 Sept 2013, 15:08

              • Login

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