Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.3, 4.7.4, 4.8.0, 5.0.0
-
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)
Attachments
For Gerrit Dashboard: QTBUG-20480 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
21034,2 | Fix QSysInfo::WindowsVersion checking (QSysInfo::WV_NT_based is a mask) | master | qt/qtbase | Status: MERGED | +2 | 0 |