How do I tell when GUI is fully displayed
-
I want to display a message to the user after the GUI has been fully displayed. Is there a signal indicating that the GUI is fully shown on the screen?
-
@Grimface override the showEvent of Mainwindow or your main widget.
https://doc.qt.io/qt-5.15/qwidget.html#showEvent -
Slightly different idea: If you know what you are doing call
repaint
instead ofupdate
(update
might gather a few calls before actually repainting). Ifrepaint
is called from the GUI thread it will block until it is done. So, afterrepaint
returns you'll know that it has completed.Only don't call
repaint
too often. This will have really bad performance.