What version of Windows will my Qt application work on?
-
Is there a way to figure this out? I'm fairly confident that it should just work on all Windows versions, but is there a way to verify this to make sure?
-
Qt runs on almost all Windows versions. You could simply check for the available downloads.
However, if your application runs on a particular Windows version depends on the version specific features you are using. For example, if you program expects to find the home directories under C:\Users it will surely fail on some Windows versions.
The only way to be sure is to test it.
-
@s.frings74 said:
depends on the version specific features you are using.
Yes, and also your compiler. By default, MSVC 2013 creates executables that won't run on Windows XP.
if you program expects to find the home directories under C:\Users it will surely fail on some Windows versions.
Not if you use QStandardPaths :)
-
Well, that depends on your code. If your code isn't system specific, your application will run on all systems (PC, SmartPhones, Tablets, embedded, ...) with little or no changes. On the other hand, if you are asking whether your binaries will run on all Windows versions, that depends on your compiler. If you want your binaries to run on every version of Windows, I believe it is safest to use the mingw gcc since it does run on all versions. Otherwise, use the lowest version of MS VC++ you can. As others said, Visual Studio 2013 compiled binaries don't run on WinXP.
-