Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Creator 6.0.1 and Qt 6.2.2 running on Windows 7
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 6.0.1 and Qt 6.2.2 running on Windows 7

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
85 Posts 31 Posters 51.6k Views 11 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.
  • hskoglundH hskoglund

    @jcga Agreed. I upgraded my PC from Windows 7 to Hackintosh MacOS Montery :-)

    subalternpushingtech29087S Offline
    subalternpushingtech29087S Offline
    subalternpushingtech29087
    wrote on last edited by subalternpushingtech29087
    #15

    @hskoglund sup , i dmd you ...need your help for some QT .dlls , to get some 6.2.2 and 6.2.4 apps to work with w7, much obliged

    1 Reply Last reply
    0
    • J jcga

      @hskoglund
      I still find Win 7 much better than Win 10. But at some point one has no other options than update.
      Jean-Claude

      subalternpushingtech29087S Offline
      subalternpushingtech29087S Offline
      subalternpushingtech29087
      wrote on last edited by
      #16

      @jcga theres still life left yet my good dude , ESUS still go till end of this year , still solid shit

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

        Hi, you should be able to get a Qt 6.2.2 MSVC 2019 64-bit widgets-flavored Qt app running on Windows 7 by downloading the .zip (link in the top post) and replace those 3 .dlls in your Qt installation.
        For a Qt 6.2.4 widgets app it is likely to get it to work (I haven't tried) on Windows 7 by downloading the source .zip (see link above), replacing the 9 source files and rebuilding Qt.

        subalternpushingtech29087S 1 Reply Last reply
        1
        • hskoglundH hskoglund

          Hi, you should be able to get a Qt 6.2.2 MSVC 2019 64-bit widgets-flavored Qt app running on Windows 7 by downloading the .zip (link in the top post) and replace those 3 .dlls in your Qt installation.
          For a Qt 6.2.4 widgets app it is likely to get it to work (I haven't tried) on Windows 7 by downloading the source .zip (see link above), replacing the 9 source files and rebuilding Qt.

          subalternpushingtech29087S Offline
          subalternpushingtech29087S Offline
          subalternpushingtech29087
          wrote on last edited by subalternpushingtech29087
          #18

          @hskoglund would appreciate it if you could give it a look , 6.2.4 .dlls , when you have some time of course, im not good at all in terms of rebuilding QT, just aim to run QT 6.2.2 and 6.2.4 apps on w7, tho if theres a easy one click tool that does this ...i can try, mind you i dont have QT installed myself , but the apps i use have QT included aka use QT and its .dlls , as ive posted an example in the Chat i opened with you

          subalternpushingtech29087S 1 Reply Last reply
          0
          • subalternpushingtech29087S subalternpushingtech29087

            @hskoglund would appreciate it if you could give it a look , 6.2.4 .dlls , when you have some time of course, im not good at all in terms of rebuilding QT, just aim to run QT 6.2.2 and 6.2.4 apps on w7, tho if theres a easy one click tool that does this ...i can try, mind you i dont have QT installed myself , but the apps i use have QT included aka use QT and its .dlls , as ive posted an example in the Chat i opened with you

            subalternpushingtech29087S Offline
            subalternpushingtech29087S Offline
            subalternpushingtech29087
            wrote on last edited by subalternpushingtech29087
            #19

            @hskoglund , would still appreciate if you could help a bro out here...as said i posted you one of the apps i use also in chat .....also if you have discord id like to add you to my friends list

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

              Sorry I'm swamped with work now, but when Qt 6.3.0 arrives I might give it a shot re. Windows 7...

              subalternpushingtech29087S L 2 Replies Last reply
              2
              • hskoglundH hskoglund

                Sorry I'm swamped with work now, but when Qt 6.3.0 arrives I might give it a shot re. Windows 7...

                subalternpushingtech29087S Offline
                subalternpushingtech29087S Offline
                subalternpushingtech29087
                wrote on last edited by
                #21

                @hskoglund very nice my man , appreciate it alot!

                1 Reply Last reply
                0
                • hskoglundH hskoglund

                  Sorry I'm swamped with work now, but when Qt 6.3.0 arrives I might give it a shot re. Windows 7...

                  L Offline
                  L Offline
                  letters
                  wrote on last edited by
                  #22

                  @hskoglund Build error, Qt 6.3.

                  1 Reply Last reply
                  1
                  • D Offline
                    D Offline
                    dmginc
                    wrote on last edited by dmginc
                    #23

                    With some initial guidance from @hskoglund (thanks!), I have managed to create Windows 7-compatible DLLs for Qt 6.3.0 (QtCore, QtGui, qwindows).

                    Purely for experimental/"at your own risk" use of course :)

                    Download for DLLs (also contains diff file showing the modifications needed to the original source files): https://web.tresorit.com/l/idV8c#QwlBcUwvkQYjzbRSWlZlnQ

                    Any issues, please let me know.

                    EDIT: Here is the batch file I used to setup my environment for building:

                    @echo off
                    
                    REM Set up Microsoft Visual Studio 2019, where <arch> is amd64, x86, etc.
                    CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
                    
                    REM Edit this location to point to the source code of Qt
                    SET _ROOT=C:\projects\qt5
                    
                    SET PATH=%_ROOT%\qtbase\bin;%PATH%
                    SET PATH=C:\ninja;%PATH%
                    
                    cd %_ROOT%
                    SET _ROOT=
                    
                    REM Set Windows version macros to Windows 7
                    SET CL=/DWINVER=0x0601 %CL%
                    SET CL=/D_WIN32_WINNT=0x0601 %CL%
                    SET CL=/DNTDDI_VERSION=0x06010000 %CL%
                    
                    REM Assume Internet Explorer 8.0
                    REM See https://docs.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers#macros-for-conditional-declarations
                    SET CL=/D_WIN32_IE=0x0800 %CL%
                    
                    REM Keeps the command line open when this script is run.
                    cmd /k
                    
                    S flafF 2 Replies Last reply
                    2
                    • D dmginc

                      With some initial guidance from @hskoglund (thanks!), I have managed to create Windows 7-compatible DLLs for Qt 6.3.0 (QtCore, QtGui, qwindows).

                      Purely for experimental/"at your own risk" use of course :)

                      Download for DLLs (also contains diff file showing the modifications needed to the original source files): https://web.tresorit.com/l/idV8c#QwlBcUwvkQYjzbRSWlZlnQ

                      Any issues, please let me know.

                      EDIT: Here is the batch file I used to setup my environment for building:

                      @echo off
                      
                      REM Set up Microsoft Visual Studio 2019, where <arch> is amd64, x86, etc.
                      CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
                      
                      REM Edit this location to point to the source code of Qt
                      SET _ROOT=C:\projects\qt5
                      
                      SET PATH=%_ROOT%\qtbase\bin;%PATH%
                      SET PATH=C:\ninja;%PATH%
                      
                      cd %_ROOT%
                      SET _ROOT=
                      
                      REM Set Windows version macros to Windows 7
                      SET CL=/DWINVER=0x0601 %CL%
                      SET CL=/D_WIN32_WINNT=0x0601 %CL%
                      SET CL=/DNTDDI_VERSION=0x06010000 %CL%
                      
                      REM Assume Internet Explorer 8.0
                      REM See https://docs.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers#macros-for-conditional-declarations
                      SET CL=/D_WIN32_IE=0x0800 %CL%
                      
                      REM Keeps the command line open when this script is run.
                      cmd /k
                      
                      S Offline
                      S Offline
                      Simon L
                      wrote on last edited by Simon L
                      #24

                      @dmginc I have difficulty applying the diff.txt file. Would you mind providing the changed source files for download? Thank you.

                      D 1 Reply Last reply
                      0
                      • S Simon L

                        @dmginc I have difficulty applying the diff.txt file. Would you mind providing the changed source files for download? Thank you.

                        D Offline
                        D Offline
                        dmginc
                        wrote on last edited by
                        #25

                        @Simon-L See here:https://github.com/duerr-ndt/qtbase/tree/6.3.0_win7

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

                          Great work! I remember struggling with the correct settings for the SDK vars like WINVER, _WIN32_WINNT etc. and left them in a messy state, your .bat file above is a cleaner approach :-)

                          1 Reply Last reply
                          1
                          • subalternpushingtech29087S Offline
                            subalternpushingtech29087S Offline
                            subalternpushingtech29087
                            wrote on last edited by subalternpushingtech29087
                            #27

                            not sure but maybe an sorts of autopatcher .....to make future QT built Apps work on W7 would be a pretty epic thing, so say you gots an App that uses QT for its GUI etc and for the patcher to just patch all .dlls so App runs on W7

                            1 Reply Last reply
                            0
                            • cristian-adamC Online
                              cristian-adamC Online
                              cristian-adam
                              wrote on last edited by
                              #28

                              Another option would be to use the MinGW Qt Creator releases from GitHub.

                              Then copy api-ms-win-core-synch-l1-2-0.dll and dxgi.dll from api-ms-win-core-synch-Win7 to Qt Creator's bin directory and then have this working:

                              alt text

                              This solution has minimal changes and should be easier to follow. Note that I haven't done extensive testing, just a hello world example built with MinGW 11.2.0, CMake 3.23.1 and Ninja 1.10.2

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                dmginc
                                wrote on last edited by
                                #29

                                Missed some things in my first set of patched DLLs.

                                Updated files can be found here: https://web.tresorit.com/l/jPIZs#9pBaP_Eq527nGMyzn2fk8A

                                1 Reply Last reply
                                0
                                • B Offline
                                  B Offline
                                  bplastos
                                  wrote on last edited by
                                  #30

                                  I realize that this topic is a bit old, but I'm hoping that either @hskoglund or @dmginc is still around.

                                  I've not developed Qt applications (yet :) ), but am just a user and am still primarily using Windows 7 (don't judge or comment, I understand the arguments of why I shouldn't). I often use portable applications which have been built using Qt, such as Calibre. Applications which have been built using Qt 5.x still work perfectly fine, but ones built with Qt 6 do not. When I saw this thread with a simple set of 3 patched files, I thought this was great, but unfortunately, when I replace the 3 files in my portable application, nothing at all visibly happens when I try to launch the app. I am assuming that is because the portable application was built using Qt 6.3.1, and the latest patched files are for Qt 6.3.0?

                                  I am hoping that some kind soul can either provide a set of patched Qt 6.3.1 files and/or provide a set of Qt 6.3.0 original files necessary to "downgrade" my portable application to use Qt 6.3.0, or suggest another solution to my problem.

                                  Thanks in advance for any help you might be able to provide.

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

                                    Hi, I think your best best is to install Qt 6.3.0 and build your app with it. then use the link above for the 3 patched .dlls.
                                    It is possible to install Qt 6.3.0 using the online Qt installer, however you first have to click the "Archive" checkbox to the right and then the "Filter" button.
                                    Also note that the patch is only applicable for Widgets apps (not QML) and only for dynamically built Qt 6.3.0 versions.

                                    1 Reply Last reply
                                    0
                                    • B Offline
                                      B Offline
                                      bplastos
                                      wrote on last edited by
                                      #32

                                      Thanks for replying @hskoglund, but the portable app is already built by others - https://calibre-ebook.com. You can get the various portable versions of the app here - https://download.calibre-ebook.com. The earlier versions of the portable app, through 5.xx, work fine on Windows 7. I'm just trying to find a way to run the latest versions of the app, 6.0.0 and 6.1.0, on Windows 7. The 6.0.0 and 6.1.0 versions were built using Qt 6.3.1, hence my request for either patched versions of the 6.3.1 files, or original versions of the 6.3.0 files other than the patched ones so I can convert the entire app to a 6.3.0 implementation, if that's possible.

                                      D 1 Reply Last reply
                                      0
                                      • B bplastos

                                        Thanks for replying @hskoglund, but the portable app is already built by others - https://calibre-ebook.com. You can get the various portable versions of the app here - https://download.calibre-ebook.com. The earlier versions of the portable app, through 5.xx, work fine on Windows 7. I'm just trying to find a way to run the latest versions of the app, 6.0.0 and 6.1.0, on Windows 7. The 6.0.0 and 6.1.0 versions were built using Qt 6.3.1, hence my request for either patched versions of the 6.3.1 files, or original versions of the 6.3.0 files other than the patched ones so I can convert the entire app to a 6.3.0 implementation, if that's possible.

                                        D Offline
                                        D Offline
                                        dmginc
                                        wrote on last edited by
                                        #33

                                        @bplastos

                                        I took a look at the diff between Qt 6.3.0 and 6.3.1:

                                        Out of the files that need to be modified for running under Windows 7, three source files have been modified: qwindowswindow.cpp, qrhid3d11.cpp, qwindowscontext.cpp

                                        Anyway, I was apply to apply my 6.3.0 changes patch directly as there were no overlapping changes.

                                        Could you try these DLLs under Windows 7?
                                        https://web.tresorit.com/l/iWnTl#yGMg45iqZObF8miEZt7FaA

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

                                          I just compiled a new Qt 6.3.1 Widgets app and tested your 6.3.1 files on my Windows 7 PC. works like a charm :-)
                                          Nice work!

                                          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