[PyQt] Two bugs in QFileDialog::getExistingDirectory

Zhao Lee redstone-cold at 163.com
Thu Aug 11 03:35:46 BST 2016

For QFileDialog::getExistingDirectory ,


The keyword argument for The dialog's working directory in Qt5 is dir ,

QString QFileDialog::getExistingDirectory(QWidget *parent = Q_NULLPTR, constQString &caption = QString(), const QString &dir = QString(), Options options = ShowDirsOnly)


While in PyQt5.7,The keyword argument is directory

QFileDialog.getExistingDirectory(parent: QWidget = None, caption: str = '', directory: str = '', options: Union[QFileDialog.Options, QFileDialog.Option] = QFileDialog.ShowDirsOnly)


This is one non-compliance



If the user presses Cancel, it should return an empty path(tested with the standarddialogs example in Qt5.7) rather than a dot(.)(This is the current PyQt5.7 behavior )


This is another  non-compliance


Please remove these non-compliances, thanks !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160811/9af4b139/attachment.html>

More information about the PyQt mailing list