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

Missed QDesktopServices and QStandardPaths in PySide2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.0
    • None
    • PySide
    • ca7e25ab0cc5b0d093a9bc5afff837f6e8ab6a8e

      No QDesktopServices in PySide2. In Qt5 it migrated from QtGui to root, but in PySide2 it was just deleted from QtGui.

      So this code from PySide can't be updated:

      QtGui.QDesktopServices.storageLocation(QtGui.QDesktopServices.DataLocation)
      

      Note, that Qt4 -> Qt5 guide suggests to use:

      QStandardPaths::standardLocations(QStandardPaths::DataLocation)
      

      but QStandardPaths not available in PySide2

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            liaqi Liang Qi
            polarnick polarnick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes