File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 55
66__version__ : str | None = None
77if QT_API == "PySide6" :
8- from PySide6 import __version__ # type: ignore
8+ from PySide6 .QtCore import qVersion # type: ignore
9+
10+ __version__ = qVersion ().decode ("utf-8" )
911elif QT_API == "PyQt6" :
10- from PyQt6 .QtCore import PYQT_VERSION_STR # type: ignore
12+ from PyQt6 .QtCore import qVersion # type: ignore
1113
12- __version__ = PYQT_VERSION_STR
14+ __version__ = qVersion ()
1315elif QT_API == "PyQt5" :
14- from PyQt5 .QtCore import PYQT_VERSION_STR # type: ignore
16+ from PyQt5 .QtCore import qVersion # type: ignore
1517
16- __version__ = PYQT_VERSION_STR
18+ __version__ = qVersion ()
1719elif QT_API == "PySide2" :
18- from PySide2 import __version__ # type: ignore # noqa: F401
20+ from PySide2 .QtCore import qVersion # type: ignore
21+
22+ __version__ = qVersion ().decode ("utf-8" )
You can’t perform that action at this time.
0 commit comments