hello,

In my program the user chooses a file with QFileDialog::getOpenFileName() and then a heavy operation gets performed on that file.
My problem is that the dialog is still partly visible during the heavy operation.

What is a good strategy to make sure the dialog is completely hidden before I start the heavy operation? Is there a way to flush all the draw events. Or do I need to wait some milliseconds?

I'm sure this problem is common but I didn't notice anything useful in the QWidget API or this forum.

Richard