[Qt-interest] Progress bar wont show correctly
Paulo Jnkml
paulo.jnkml at gmail.com
Sat Mar 14 19:28:51 CET 2009
Hi,
Could anyone be so kind as to try this code:
const unsigned N(1000000);
QProgressDialog dialog("Progress", "Cancel", 0, N);
dialog.show();
for (unsigned i(0); i != N; ++i)
dialog.setValue(i);
This works correctly if I run it in the main function.
Yet, if I run it in a callback (slot) this thing wont show the text
labels...
Any reason for this?
Using Qt4.5.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090315/c06731f2/attachment.html
More information about the Qt-interest-old
mailing list