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

QFileSystemModel still is in QtWidgets instead of QtGui

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 7.0
    • 6.2.9
    • PySide
    • None

    Description

      In Qt 6, QFileSystemModel is part of Qt GUI (not Qt Widgets), yet in PySide6, it's still in QtWidgets:

      >>> import PySide6
      >>> print(PySide6.__version__)
      6.3.0
      >>> from PySide6.QtGui import QFileSystemModel
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      ImportError: cannot import name 'QFileSystemModel' from 'PySide6.QtGui' (/usr/lib/python3.10/site-packages/PySide6/QtGui.cpython-310-x86_64-linux-gnu.so)
      >>> from PySide6.QtWidgets import QFileSystemModel
      >>> 
      

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              the compiler Florian Bruhin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes