Priority: P2: Important
Affects Version/s: 5.14
Fix Version/s: None
Component/s: Core: Other
Tested against the Server 2022 preview:
QSysInfo::productVersion() returns "server2016"
QSysInfo::prettyProductName() returns "Windows Server 2016 (10.0)".
Looking at the code in qoperatingsystemversion_win.cpp, it looks like the returned OSVERSIONINFOEX only supports up to Server 2016 (documentation).
I think a better solution may be to pull the name from the register using something like (semi-psudocode):
Some examples of what this returns:
Given the nature of Windows 10, and how Windows 10 in 2015 is very different to Windows 10 in 2021 it may be good to also include some more info (ie: 21H1, 2004, redstone1, basically one of the columns here)