Unsolved Running action at start of the programm
-
I have my custom class inheriting QMainWindow and I want it to show a dialog as the very first thing that happens when application starts.
My first idea, was to run exec() on dialog in constructor of my class, but it meant code would run before QApplication.exec() and I don't think that should be the case.
How do I handle actions, that should happen before user does anything or main window is even shown?
-
Simply use a signal/slot connection to call show() only when the login screen was successful.
-
@HalfTough
Another possibility is that your case may be remarkably similar to the recent https://forum.qt.io/topic/109802/how-can-i-show-an-other-widget-or-dialog-before-mainwindow ? There aQSplashScreen
turned out to be just what was wanted.