[PyQt] [BUG] QFileDialog::​getExistingDirectory() returns a dot(.) when canceled

Vincent Vande Vyvre vincent.vande.vyvre at telenet.be
Sun Mar 15 13:14:44 GMT 2015


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.

Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150315/d299dcc8/attachment.html>


More information about the PyQt mailing list