Mpi | 7 Oct 09:21

No cancel button in QProgressDialog

Dear all,

I don't want the cancel button to show up in my progress dialog. If you pass
a 0 for the cancelButtonText in the constructor, the button should go away.
Here's what I do

progress = QProgressDialog ('Rendering...', QString(0), 0, 100)

But the button still appears. Any clues on how to go about this?

running:

PyQt-x11-gpl-4.4.3
qt-x11-opensource-src-4.4.1

Best regards,

Mads

________________________________________________________________
Kommunikation uden grænser - ComX Networks Webmail - 2.7.8p3
Phil Thompson | 7 Oct 10:03

Re: No cancel button in QProgressDialog

On Tue, 7 Oct 2008 09:24:28 +0200, Mpi <mpi <at> comxnet.dk> wrote:
> Dear all,
> 
> I don't want the cancel button to show up in my progress dialog. If you
> pass
> a 0 for the cancelButtonText in the constructor, the button should go
away.
> Here's what I do
> 
> progress = QProgressDialog ('Rendering...', QString(0), 0, 100)

That should raise an exception.

> But the button still appears. Any clues on how to go about this?

Use QString().

Phil

Gmane