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 44.7k 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 Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #1

    Hi, Christmas is soon upon us, I thought I should bring a gift to those poor souls (like me) that are stuck/prefer working with Qt on Windows 7 instead of 10 or 11.

    Recently I installed Microsoft's new Visual Studio 2022 on my Windows 7 PC, when you install it you get a warning "We haven't designed this version of Visual Studio to work with this operating system. You can still install it but...." Anyway it seems to work nicely on my Windows 7 PC.

    Why cannot Qt Creator issue the same kind of warning and install anyway, instead of exiting with an 0xC0000005 error? Because it is based on Qt 6..2.2 which by design will not run on Windows 7 :-(

    Today I spent some time debugging how much trouble it would be to make Qt 6.2.2 run on Windows 7. Turns on there are 3 showstoppers: qt6core.dll, qt6gui.dll and the platforms plugin qwindows.dll. Some hacking/backporting later I had new versions of them.

    When I replaced both Qt Creator's dlls in C:\Qt\Tools\QtCreator\bin and the qwindows.dll in C:\Qt\Tools\QtCreator\bin\plugins.\platforms, voila! It started just fine:

    Xmas gift

    Next step was to be able to build and run Qt 6.2.2 apps on Windows 7. So I installed MSVC 2019 64-bit 6.2.2 on my Windows 7, late in the installation process it stops with a qmake error (because qmake runs on an unpatched qt6core.dll) but if you click Ignore 2 times it will install anyway. Then if you replace Qt6Core.dll, Qt6Gui.dll and qwindows.dll in C:\Qt\6.2.2\msvc2019_64 compiling and building widgets based programs seems to work fine.
    (I also tested a qtquick program but got the error "Cannot load library C:\Qt\6.2.2\msvc2019_64\qml\QtQuick\qtquickplugin.dll: file not found"
    that plugin dll also needs some patching for Windows7. However since I only work with widgets this problem has low priority.)

    So the Xmas gift is a zip with the 3 patched dlls if you're feeling adventurous...

    P.S. They are a bit rough around the edges so only use them on a Windows 7 PC, on a Windows 10 PC use the real stuff. Merry Xmas!

    jsulmJ 1 Reply Last reply
    7
    • hskoglundH hskoglund

      Hi, Christmas is soon upon us, I thought I should bring a gift to those poor souls (like me) that are stuck/prefer working with Qt on Windows 7 instead of 10 or 11.

      Recently I installed Microsoft's new Visual Studio 2022 on my Windows 7 PC, when you install it you get a warning "We haven't designed this version of Visual Studio to work with this operating system. You can still install it but...." Anyway it seems to work nicely on my Windows 7 PC.

      Why cannot Qt Creator issue the same kind of warning and install anyway, instead of exiting with an 0xC0000005 error? Because it is based on Qt 6..2.2 which by design will not run on Windows 7 :-(

      Today I spent some time debugging how much trouble it would be to make Qt 6.2.2 run on Windows 7. Turns on there are 3 showstoppers: qt6core.dll, qt6gui.dll and the platforms plugin qwindows.dll. Some hacking/backporting later I had new versions of them.

      When I replaced both Qt Creator's dlls in C:\Qt\Tools\QtCreator\bin and the qwindows.dll in C:\Qt\Tools\QtCreator\bin\plugins.\platforms, voila! It started just fine:

      Xmas gift

      Next step was to be able to build and run Qt 6.2.2 apps on Windows 7. So I installed MSVC 2019 64-bit 6.2.2 on my Windows 7, late in the installation process it stops with a qmake error (because qmake runs on an unpatched qt6core.dll) but if you click Ignore 2 times it will install anyway. Then if you replace Qt6Core.dll, Qt6Gui.dll and qwindows.dll in C:\Qt\6.2.2\msvc2019_64 compiling and building widgets based programs seems to work fine.
      (I also tested a qtquick program but got the error "Cannot load library C:\Qt\6.2.2\msvc2019_64\qml\QtQuick\qtquickplugin.dll: file not found"
      that plugin dll also needs some patching for Windows7. However since I only work with widgets this problem has low priority.)

      So the Xmas gift is a zip with the 3 patched dlls if you're feeling adventurous...

      P.S. They are a bit rough around the edges so only use them on a Windows 7 PC, on a Windows 10 PC use the real stuff. Merry Xmas!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @hskoglund said in Qt Creator 6.0.1 and Qt 6.2.2 running on Windows 7:

      I thought I should bring a gift to those poor souls (like me) that are stuck/prefer working with Qt on Windows 7

      Not sure why you still want to work with Windows 7 which reached end of life long time ago?
      As far as I know it does not even get security fixes anymore?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        I use Windows 10 also, for sure. But at least on 2 occasions when I went to get a coffee, coming back and finding Windows 10 has restarted my machine without my consent, does not help. Re. security updates, you are correct. So I make sure my PC cannot be reached from internet, does not have any email capability and only surf to qt.io and google.

        artwawA kshegunovK J 3 Replies Last reply
        0
        • hskoglundH hskoglund

          I use Windows 10 also, for sure. But at least on 2 occasions when I went to get a coffee, coming back and finding Windows 10 has restarted my machine without my consent, does not help. Re. security updates, you are correct. So I make sure my PC cannot be reached from internet, does not have any email capability and only surf to qt.io and google.

          artwawA Offline
          artwawA Offline
          artwaw
          wrote on last edited by
          #4

          @hskoglund said in Qt Creator 6.0.1 and Qt 6.2.2 running on Windows 7:

          Windows 10 has restarted my machine without my consent

          This can be prevented, you know. There are settings for that.

          For more information please re-read.

          Kind Regards,
          Artur

          JonBJ 1 Reply Last reply
          0
          • artwawA artwaw

            @hskoglund said in Qt Creator 6.0.1 and Qt 6.2.2 running on Windows 7:

            Windows 10 has restarted my machine without my consent

            This can be prevented, you know. There are settings for that.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @artwaw
            Maybe, but Win 10 does tend to have a "I know better than you" attitude, compared to Win 7 ;-)

            1 Reply Last reply
            3
            • hskoglundH hskoglund

              I use Windows 10 also, for sure. But at least on 2 occasions when I went to get a coffee, coming back and finding Windows 10 has restarted my machine without my consent, does not help. Re. security updates, you are correct. So I make sure my PC cannot be reached from internet, does not have any email capability and only surf to qt.io and google.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              @hskoglund said in Qt Creator 6.0.1 and Qt 6.2.2 running on Windows 7:

              So I make sure my PC cannot be reached from internet, does not have any email capability and only surf to qt.io and google.

              lol. Henry, I'ven't taken you as one of them tinfoil-hat people ... ;)

              Read and abide by the Qt Code of Conduct

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

                Don't worry @kshegunov , no hat for me. But those ancient Windows installations you have to treat gently so they don't break :-)

                1 Reply Last reply
                2
                • F Offline
                  F Offline
                  fjhuangcs
                  wrote on last edited by
                  #8

                  Thank you,you save me!

                  1 Reply Last reply
                  0
                  • andrA Offline
                    andrA Offline
                    andr
                    wrote on last edited by
                    #9

                    @hskoglund : There are Qt 5 based builds of Qt Creator 6.0.x on https://download.qt.io/snapshots/qtcreator_qt5/6.0/

                    hskoglundH 1 Reply Last reply
                    0
                    • andrA andr

                      @hskoglund : There are Qt 5 based builds of Qt Creator 6.0.x on https://download.qt.io/snapshots/qtcreator_qt5/6.0/

                      hskoglundH Offline
                      hskoglundH Offline
                      hskoglund
                      wrote on last edited by
                      #10

                      @andr Thank you! I know I've seen that link before but couldn't find it.

                      If those Qt5-flavored builds of Qt Creator keep coming, that'll solve almost all of my issues with Qt and Windows 7, except if I want to build and test a Qt6 app. In that case my patches above could still be useful :-)

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        lttlflla
                        wrote on last edited by
                        #11

                        @hskoglund Will you like to share the patches that you had applied to fix this 0xC0000005 error? I am also trying to get 6.2 working on Windows 7. Even the uic.exe moc.exe console apps fail with 0xC0000005 error. Many Thanks if you can help out.

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

                          Hi, the patches for Qt 6.2.2 in binary format (3 .dlls) can be downloaded via the link above (in the first post).
                          The patches in source format consists of 9 files, I made a .zip for you here
                          I've only tested them on Qt 6.2.2 but with a bit of luck they should work on 6.2.3 as well...

                          D 1 Reply Last reply
                          1
                          • hskoglundH hskoglund

                            I use Windows 10 also, for sure. But at least on 2 occasions when I went to get a coffee, coming back and finding Windows 10 has restarted my machine without my consent, does not help. Re. security updates, you are correct. So I make sure my PC cannot be reached from internet, does not have any email capability and only surf to qt.io and google.

                            J Offline
                            J Offline
                            jcga
                            wrote on last edited by
                            #13

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

                            hskoglundH subalternpushingtech29087S 2 Replies Last reply
                            1
                            • 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

                              hskoglundH Offline
                              hskoglundH Offline
                              hskoglund
                              wrote on last edited by
                              #14

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

                              subalternpushingtech29087S 1 Reply Last reply
                              0
                              • 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

                                          • Login

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