It actually sounds easy (if I didn't understand your question).
QDialog my_progress_dialog( this ); my_progress_dialog.setModal( true ); my_progress_dialog.show();
Calling show() not exec() will leave you in the main eventloop. At the same time, installing a modal modal block blocks all users from entering the main window. Completion of the assignment.
Have you looked at the QProgressDialog ? This is there for this purpose.
Robin
source share