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. Maintenance Tool not showing MSVC 2022 64-bit

Maintenance Tool not showing MSVC 2022 64-bit

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 2 Posters 3.6k Views
  • 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.
  • L Offline
    L Offline
    leinad
    wrote on last edited by
    #1

    Hi,

    I installed Visual Studio 2022 along with the latest compiler. Currently within QtCreator the lastest compiler version I'm using is MSVC2019-64bits. There is no selection in the maintenance tool to install 2022 compiler support libraries. I think there is a way to install a custom compiler, but MSVC is pretty popular so I don't consider it custom. Any ideas how I can get QtCreator to use the 2022 compiler?

    Thanks!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leinad
      wrote on last edited by
      #2

      Seems according to another thread, it is not available so I'm stuck with 2019 for now.

      https://forum.qt.io/topic/135629/qt-6-with-msvc-2022/4

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by Chris Kawa
        #3

        You are confusing the compiler you're using in a kit for your app with the compiler that was used to build Qt libraries. The precompiled Qt libraries that are distributed via installer are compiled with VS2019. This doesn't mean you are limited to the same in your app. You can make a kit that uses VS2022 compiler with the VS2019 Qt libraries. They are binary compatible so no problem there.

        You don't need to set any custom compilers in Qt Creator. VS2022 is auto-detected by Qt Creator. All you have to do is make a kit that uses your 2019 Qt libs and VS2022 compiler.

        Go to Edit -> Preferences -> Kits. On the Compilers tab you should see the VS2022 compiler auto-detected and listed already. On the Qt Versions tab you should see your VS2019 Qt libraries auto-detected. On the Kits tab there's gonna be an auto generated kit for VS2019 compiler and Qt libs. Select it and press the Clone button. Select the new kit and in its properties change the C and C++ compilers to the VS2022. Now you can use that kit for your projects.

        Also, if you don't mind compiling Qt yourself, you can download the Qt source in the installer and compile it with VS2022, to crate a fully VS2022 kit. There's no big benefit to that though.

        EDIT From what I see you don't even have to make that cloned kit. The auto-generated one will already select the VS2022 compiler for you, so you are good to go without doing anything.

        1 Reply Last reply
        1
        • L Offline
          L Offline
          leinad
          wrote on last edited by
          #4

          Hmm, in my Qtcreator the only autodetect I see is Qt5.15.2 MSVC2019 32 bit and 64 bit.

          Chris KawaC 1 Reply Last reply
          0
          • L leinad

            Hmm, in my Qtcreator the only autodetect I see is Qt5.15.2 MSVC2019 32 bit and 64 bit.

            Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @leinad It's just a name auto-generated from the Qt library name. If you select this kit you can change the name to whatever you want in properties. The important thing is what is selected in the C/C++ Compiler fields below.

            1 Reply Last reply
            1
            • L Offline
              L Offline
              leinad
              wrote on last edited by
              #6

              I do see Microsoft Visual C++ Compiler 17.3.32922.545 under the compiler tab which I think is for 2022.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                leinad
                wrote on last edited by
                #7

                I did as you suggested and cloned the 2019 version so I'll try to use that.

                Chris KawaC 1 Reply Last reply
                0
                • L leinad

                  I did as you suggested and cloned the 2019 version so I'll try to use that.

                  Chris KawaC Offline
                  Chris KawaC Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @leinad That should work, but like I said - you don't even have to do that. The auto-generated kit should already use the VS2022 compiler. Here's a screenshot from my setup. This uses The VS2022 compiler and Qt library compiled with VS2019.
                  VS2022Kit

                  1 Reply Last reply
                  1
                  • L Offline
                    L Offline
                    leinad
                    wrote on last edited by
                    #9

                    Thanks, that did the trick.

                    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