Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Dialog or Widgets redraw in a loop
Andy314 last edited by
I want show a small dialog during a longer calculation.
The dialog appears but shows only a white blank content.
The following code after dialog showing does not help.
// this == a QDialog subclass
How can I force a redraw of a dialog or single widgets out of the event-loop.
If your calculation is long enough processEvents won't really help. You have to either break it in smaller parts or move it outside the GUI thread.