[dolphin] [Bug 422389] New: QFileDialog not working with Native File Dialog on Kubuntu

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Jun 2 20:57:39 BST 2020


https://bugs.kde.org/show_bug.cgi?id=422389

            Bug ID: 422389
           Summary: QFileDialog not working with Native File Dialog on
                    Kubuntu
           Product: dolphin
           Version: unspecified
          Platform: Kubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: schmidt.samuel at mailfence.com
                CC: kfm-devel at kde.org
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the kfm-devel mailing list