[Qt-interest] QProgressDialog problem
Arnold Krille
arnold at arnoldarts.de
Fri Dec 12 20:50:06 CET 2008
On Friday 12 December 2008 16:50:34 NARCISO, Rui wrote:
> The problem is that the application doesn't display the progress bar since
> it is "busy" with the function.
> Does anyone have a solution I could use ?
That is explained in the Qt docs at least two times (from memory). And there
are at least two possible solutions:
1) Call QApplication::processEvents() during your long-running operation once
in a while.
2) Run the long-running operation in its own thread. (See QThread or QRunner
for that.)
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081212/59f1f6f3/attachment.bin
More information about the Qt-interest-old
mailing list