Details
Description
This code works fine on python 3.10:
d = QDir(base_path)
entries = d.entryList(QDir.Filter.Files)
However, doesn't work on 3.11 (<3.10 or >3.11 not tested at this point). Always returns an empty list.
The workaround at the moment is to not have the filter, which returns all entries, including directories.
files = d.entryList()
Notes:
- This was tested with both resource paths (ex ":/images") and normal paths.
- Any filter causes QDir.entryList(...) to return an empty list (ex. QDir.Filter.Dirs)
Attachments
For Gerrit Dashboard: PYSIDE-2834 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
580835,2 | shiboken6: Exclude enums from type checks for function arguments of type sequence | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |