Bug 422389 - QFileDialog not working with Native File Dialog on Kubuntu
Summary: QFileDialog not working with Native File Dialog on Kubuntu
Status: RESOLVED WORKSFORME
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-02 19:57 UTC by schmidt.samuel
Modified: 2020-07-02 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description schmidt.samuel 2020-06-02 19:57:39 UTC
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
Comment 1 Brad Hards 2020-06-02 21:45:47 UTC
Does
kdialog --getexistingdirectory .
work?
Comment 2 Bug Janitor Service 2020-06-17 04:33:09 UTC
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!
Comment 3 Bug Janitor Service 2020-07-02 04:33:09 UTC
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!