Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2668

QOperatingSystemVersion OSType error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.0, 6.8.0, 6.7.1
    • 6.6.3
    • PySide
    • None
    • Windows 10
      Windows 11
      Python 3.8 - 3.12
    • All
    • 4c945a121 (dev), cf7deb816 (6.7), c989d58e9 (6.6), d621c6df5 (6.7.0), 4237c4d3f (tqtc/6.7.0)

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            rainzee rainzee wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: