Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.


  • Moderators

    @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.



  • Actually, with Visual Studio 2013, you can make your Qt app run nicely on Windows XP and Windows Server 2003 if you add

    QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS,5.01
    

    to your .pro file. Suspect this works also on VS2015 but haven't tested yet.


Log in to reply