[PyQt] Bug in QFileDialog

Vicent Mas uvemas at gmail.com
Wed Dec 8 16:28:49 GMT 2010

On 2010-12-03 Vicent Mas <uvemas at gmail.com> said:

> On 2010-12-03 Vicent Mas <uvemas at gmail.com> said:
> > Hi,
> > 
> > the attached script shows a bug in QFileDialog. If on a given dialog you
> > call setLabelText(QFileDialog.Accept, text) and then you call
> > setFileMode(FileMode) then the label is not set and the default label is
> > used. If you call setFileMode(FileMode) first and then you call
> > setLabelText(QFileDialog.Accept, text) then the label is set.
> > 
> > As you can see in the script the problem only happens with the
> > QFileDialog.Accept constant. Other QFileDialog.DialogLabel constants work
> > fine.
> > 
> > I don't know if it is a Qt bug or a PyQt one. Neither I know if the
> > problem is in the setLabelText method or in th setFileMode one.
> I forgot to mention the versions info:
> Python 2.5.5
> Qt 4.6.3
> PyQt 4.8


I sent the above report last Friday but get no answer at all. Please, let me 
know if there is something wrong with it (not clear enough, attached script 
not working...) and I'll try fix the message and send a more appropriate 



	Share what you know, learn what you don't

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101208/202ccd5c/attachment.pgp>

More information about the PyQt mailing list