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. Pre Program Widget (slowly appearring and disappearing)
Forum Update on Monday, May 27th 2025

Pre Program Widget (slowly appearring and disappearing)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.2k Views
  • 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.
  • B Offline
    B Offline
    BadHombre
    wrote on last edited by BadHombre
    #1

    Hi Guys,

    i wrote a little Program with QT.

    Now i want that if the user starts the Program ... First there should be a widget with a logo which opens slowly ..... and then also it should dissapear slowly .

    And after that the Program should open.

    Has sb an Idea how to realise that with QT ?
    Because i dont want that the widget only apears... it should slowly apears like first its transparent and slowly you can ses it more.
    And the same way dissapears.

    Hope that sb can help me.

    Thanks in advance!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean something like an animate QSplashScreen ?

      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
      2
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        https://forum.qt.io/topic/70928/animating-qwidget-opacity-property-fade-in-fade-out-effect/5

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        0
        • B Offline
          B Offline
          BadHombre
          wrote on last edited by
          #4

          I tried it with QSplah and it seems working ... but it's to fast... and the Main Window opens also immediately... also the Pixmap stays and don't face out :/

              QPixmap pixmap("C:/Users/a/Desktop/_3.1.png");
              QSplashScreen splash(pixmap);
                 splash.show();
                 app.processEvents();
                 
                 QMainWindow window;
                 window.show();
                 splash.finish(&window);
             
              MainWindow MainDialog;
              MainDialog.show();
              return app.exec();
          
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            That's normal, your QMainWindow won't take long to show itself thus you won't see the splash screen for long.

            If you want that delay then create it artificially with e.g. a QTimer. However take into account that this is something that might get on the nerves of your customers if they have to lose time for no reason each time your application starts.

            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
            2

            • Login

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