pytest-dev / pytest-qt

pytest plugin for Qt (PyQt5/PyQt6 and PySide2/PySide6) application testing
https://pytest-qt.readthedocs.io
MIT License
409 stars 70 forks source link

PySide6 support #330

Closed mounten closed 3 years ago

mounten commented 3 years ago

Not that many differences to PySide2. Does not yet support from __feature__ import snake_case, true_property.

nicoddemus commented 3 years ago

Should we squash/merge this?

nicoddemus commented 3 years ago

Ahh we also need to update the CHANGELOG, will do it now.

j9ac9k commented 3 years ago

Posting here in case it's helpful, we rolling out PySide6 and PyQt6 Compatibility in pyqtgraph recently; PyQt6 required much more work... you can see the PRs here:

PySide6: https://github.com/pyqtgraph/pyqtgraph/pull/1495 PyQt6: https://github.com/pyqtgraph/pyqtgraph/pull/1502

Edit: The bulk of our abstraction layer is in pyqtgraph/Qt.py file.

EDIT2: PyQt6 6.0.0 gave us some issues as their enums did not resolve to integers, a lot of fixes were made in PyQt6 6.0.1; we decided to not support 6.0.0 at all.

nicoddemus commented 3 years ago

Thanks @j9ac9k!

@The-Compiler should we go ahead and merge this?

The-Compiler commented 3 years ago

Looks good to me! :+1: Not sure if you prefer to squash or not, so I'll let you press the button :wink:

The-Compiler commented 3 years ago

FYI, this finally got released as part of pytest-qt 4.0.0! :tada:

Thanks again @jensheilman for the initial Qt6 and PySide6 support! :+1: