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
- is duplicated by
-
PYSIDE-2107 QFileSystemModel belongs to PySide6.QtWidgets instead of QtGui
-
- Closed
-