[Interest] QProgressDialog not showing & processEvents()
etienne.sandre at m4x.org
Fri Nov 15 14:05:48 CET 2013
I have a long file saving function (gigabytes - several minutes) and I am
trying to use QProcessDialog. I am using it the Modal way as explained in
the documentation. However, the dialog appears after about 50 seconds,
despite having set the minimumDuration to 0, and called setValue() several
Googling for the issue says I need to call QApplication::processEvents
regularly in order for the GUI to refresh. However, the doc says :
"If the progress dialog is modal
so take care that this does not cause undesirable re-entrancy in your code"
So I'm puzzled... Do I need to call it, or is it already called by
setValue? In the example there are no explicit calls to processEvents().
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest