[Qt-interest] the problem of QProgressDialog & QProgressBar

Gan Xiebin gan.xiebin at gmail.com
Mon Jul 13 10:22:59 CEST 2009


I'm sorry that I did not use plain text format.

Let me restate my question.

I have a code where call QProgressDialg as follows.

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

progressDlg.show(); //Calling this here only shows the title bar, no button
and label. Why?
// progressDlg.exec(); Can not call this here, because the next step will
never be executed.
// Unless there's a non blocking call to exec.

myFunction() ; // Do something here and show the result text to a dialogue

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 progress bar and dialog,
and can not find out the answer.

Any idea?
Thank you.



> *
>
> *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/eb1dd86e/attachment.html 


More information about the Qt-interest-old mailing list