[Qt-creator] QProgressDialog
Paulo Jnkml
paulo.jnkml at gmail.com
Mon Feb 2 18:28:03 CET 2009
Well,
this means that I have a bug in my Qt most likely, right?
I'll continue this on the other list.
Thanks =)
Eike Ziller wrote:
> Hi,
>
> On Feb 2, 2009, at 4:49 PM, ext Paulo Jnkml wrote:
>
>
>> 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
>>
>
> Yes, the qt-interest at trolltech.com mailing list would be better suited.
>
> Nevertheless, the following code does show the cancel button+label for
> me (I'm at a Mac though):
>
> int main(int argc, char *argv[])
> {
> QApplication a(argc, argv);
> QProgressDialog dialog("Progress", "Cancel", 0, 1000);
> dialog.show();
> for (int i = 0; i <= 1000; ++i) {
> dialog.setValue(i);
> }
> }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090203/956306bc/attachment.html
More information about the Qt-creator-old
mailing list