[Qt-interest] the problem of QProgressDialog & QProgressBar

Gan Xiebin gan.xiebin at gmail.com
Mon Jul 13 08:21:24 CEST 2009


Hi all,

I have a code where call QProgressDialog as follows.
**

*-----------------
QProgressDialog **progressDlg**("Progress", "Cancel", 0, 100, this);

**progressDlg**.show(); //Calling this here only shows the bar, no
button or label.Why?

//**progressDlg**.exec(); Can't call this here because the next step
will never be
executed. Unless there's a non blocking call to exec.

myFunction( ); //show another dialog*


*progressDlg->setValue(progressDlg->maximum());
progressDlg->close();
-------------------

*How can I make this progress dialog show itself completly without
calling the exec()?
I read the document about the progress bar and dialog,
and can not find out the answer.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090713/bcae2648/attachment.html 


More information about the Qt-interest-old mailing list