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

Missed QDesktopServices and QStandardPaths in PySide2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
    • Commits:
      ca7e25ab0cc5b0d093a9bc5afff837f6e8ab6a8e

      Description

      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

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-432
          # Subject Branch Project Status CR V

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes