Pre Program Widget (slowly appearring and disappearing)
BadHombre last edited by BadHombre
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!
Do you mean something like an animate QSplashScreen ?
VRonin last edited by
BadHombre last edited by
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();
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.