SUMMARY QFileDialog.getExistingDirectory() does not work with the Native Dialog. Works on other operating systems. I don't know if its the fault of Qt or KDE or something else. STEPS TO REPRODUCE 1. Save and execute the following python code: from PyQt5 import Qt from PyQt5.QtWidgets import QFileDialog app = Qt.QApplication([]) FilePath = Qt.QFileDialog.getExistingDirectory(None,'choose the file','/home') print(FilePath) OBSERVED RESULT It opens the native File Dialog but you can't select a path. (Works on other OS) Set QFileDialog.DontUseNativeDialog in .getExistingDirectory() and it works. Therefor the File Dialog of Kubuntu seems to be the problem. EXPECTED RESULT Return path to directory SOFTWARE/OS VERSIONS Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-33-generic OS Type: 64-bit ADDITIONAL INFORMATION
Does kdialog --getexistingdirectory . work?
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!