Shouldn't there be QtCore instead of just Qt?
|
try: |
|
from PyQt5 import Qt |
|
|
|
versions += f"PyQt: {Qt.PYQT_VERSION_STR} - Qt: {Qt.QT_VERSION_STR}" |
|
except ImportError: |
For PyQt6, it is so:
|
try: |
|
from PyQt6 import QtCore |
|
|
|
versions += ( |
|
f"PyQt: {QtCore.PYQT_VERSION_STR} - Qt: {QtCore.QT_VERSION_STR}" |
|
) |
|
except ImportError: |
Shouldn't there be
QtCoreinstead of justQt?qtpy/qtpy/tests/conftest.py
Lines 23 to 27 in cd0b49b
For
PyQt6, it is so:qtpy/qtpy/tests/conftest.py
Lines 48 to 54 in cd0b49b