Details
Description
from PySide6.QtCore import QOperatingSystemVersion
def getOSInfo() -> None:
currentOS = QOperatingSystemVersion.current()
print(currentOS.type())
# print OSType.Windows
print(currentOS.type() == QOperatingSystemVersion.OSType.Windows)
# Expectation is true but result is false
if _name_ == "_main_":
getOSInfo()
Attachments
For Gerrit Dashboard: PYSIDE-2668 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
552797,3 | Fix broken comparison of QOperatingSystemVersion::OSType | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
552916,2 | Fix broken comparison of QOperatingSystemVersion::OSType | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
552962,2 | Fix broken comparison of QOperatingSystemVersion::OSType | 6.7.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
552963,2 | Fix broken comparison of QOperatingSystemVersion::OSType | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
553009,1 | Fix broken comparison of QOperatingSystemVersion::OSType | tqtc/lts-6.5 | pyside/tqtc-pyside-setup | Status: ABANDONED | +2 | 0 |
553118,2 | Fix broken comparison of QOperatingSystemVersion::OSType | tqtc/6.7.0 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |