Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.0
-
None
-
mingw
Description
Since QTBUG-92271 the targeted Windows version is forced to Windows 10 in mingw. It was forced to Windows 7 before that.
IMO both are wrong. This is only enforced for mingw while MSVC is unaffected. And in a mingw context it makes even more sense to get the Windows version (WINVER/_WIN32_WINNT) and even Windows flavor (NTDDI_VERSION) from the environment. It should not be forced to a single value for every mingw user. Or at least it should only forced to a sensible version when the values are not set in the environment.
The default value in mingw is Windows XP with Service Pack, unless you build with UCRT, in which case the default is Windows 10.