Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1150

getExistingDirectory Broken (cant select, corrupted path, no default path)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.13.1
    • PySide
    • None
    • Ubuntu 16.04, Python 3.7
    • Linux/X11

    Description

      Sorry for the vague title but there are multiple things that do not work and this is possibly due to a binding issue. I am running Ubuntu 16.04 Python 3.7

      import sys
      
      from PySide2.QtWidgets import QFileDialog, QApplication
      
      app = QApplication(sys.argv)
      loc = QFileDialog.getExistingDirectory(None, '', '/home', options=QFileDialog.Option.ShowDirsOnly)
      print(loc)
      sys.exit(app.exec_())
      

      Issue 1: The above code presents

       

      As opposed to the expected home directory. I have also tried passing the keyword arguments.

      Issue 2: You cannot select a directory. Notice that the Open button on the bottom is greyed out.

      Issue 3: The returned path is strange (I need to click a file to be able to get any path)

      /run/user/1000/doc/7ab72791/thing

       

      Import note is that I also have PyQt5 installed. Some of the others like `getSaveFileName` work!

       

       

      Attachments

        1. image-2019-11-25-16-47-26-273.png
          image-2019-11-25-16-47-26-273.png
          85 kB
        2. image-2019-11-25-16-49-40-840.png
          image-2019-11-25-16-49-40-840.png
          58 kB
        3. issue1.png
          issue1.png
          25 kB
        4. issue2.png
          issue2.png
          25 kB
        5. pyside1150.py
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            jklaivins Josiah K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes