[PyQt] [BUG] QFileDialog::getExistingDirectory() returns a dot(.) when canceled
Florian Bruhin
me at the-compiler.org
Sun Mar 15 16:33:55 GMT 2015
* Vincent Vande Vyvre <vincent.vande.vyvre at telenet.be> [2015-03-15 14:14:44 +0100]:
> Le 15/03/2015 04:23, iMath a écrit :
> >for
> >QString QFileDialog::getExistingDirectory(QWidget * parent = 0, const
> >QString & caption = QString(), const QString & dir = QString(), Options
> >options = ShowDirsOnly)
> >
> >currently , If the user presses Cancel, it returns a dot(.), I think it
> >should return an empty string or None.
> >
> >
> >_______________________________________________
> >PyQt mailing list PyQt at riverbankcomputing.com
> >http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> Which version ?
>
> With Qt 5.2.1 + PyQt5 5.2.1 I've an empty string.
Same here on Qt 5.4.1 on Archlinux.
Florian
--
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150315/c3e69bfa/attachment.sig>
More information about the PyQt
mailing list