[Qt-creator] QProgressDialog

Paulo Jnkml paulo.jnkml at gmail.com
Mon Feb 2 16:49:05 CET 2009


Hi,

consider the following code:


QProgressDialog d("Progress", "Cancel", 0, 100);

d.show(); //Calling this here only shows the bar, no button or label.

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

myFunctionWithCalback( boost::bind(&QProgressDialog::setValue, &pd, _1) 
); //look look, boost free pub


//d.exec(); Won't be of much value here.



- How can I make this dialog show itself completly without calling the 
exec()?

- Is it normal for d.show not to show the cancel button and the label 
text? (The dialog does get resized by the label length though.)

Thank you.
PS: If there's a better place to pose such a question, could anyone tell 
me please =D

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090203/d86b527e/attachment.html 


More information about the Qt-creator-old mailing list