Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What version of Windows will my Qt application work on?
Qt 6.11 is out! See what's new in the release blog

What version of Windows will my Qt application work on?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 5 Posters 1.6k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whatisjeff
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      s.frings74
      wrote on last edited by
      #2

      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.

      JKSHJ 1 Reply Last reply
      0
      • S s.frings74

        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.

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        @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 :)

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • B Offline
          B Offline
          brcha
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved