Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20480

Windows version checking is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0, 5.0.0
    • 4.7.3, 4.7.4, 4.8.0, 5.0.0
    • GUI: Look'n'Feel
    • None

    Description

      Windows Vista & higher detection is currently being done like this:
      QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && QSysInfo::WindowsVersion < QSysInfo::WV_NT_based

      However, this is totally wrong. Untested Windows NT versions such as Windows 8 (NT 6.2) are marked as QSysInfo::WV_NT_based, causing the condition to fail incorrectly.

      The proper way to check for Windows version is thus:
      QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based)

      https://qt.gitorious.org/qt/qt/merge_requests/1272

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            miniak Milan Burda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes