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. Qt 6 with MSVC 2022

Qt 6 with MSVC 2022

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 6 Posters 14.8k 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.
  • N Offline
    N Offline
    nezihe
    wrote on last edited by
    #1

    Dear Qt Community,
    I would like to install Qt 6.x version with MS Visual Studio 2022 compiler, however I couldn't find MSVC 2022 on the "Select Component Page" as you can see below image:
    41aa69f5-a996-4db7-847b-e9e6a378f1b0-image.png

    Only shows me MSVC 2019. How can I install the Qt 6.x with MSVC 2022?

    Thank you in advance!

    O jsulmJ 2 Replies Last reply
    3
    • N nezihe

      Dear Qt Community,
      I would like to install Qt 6.x version with MS Visual Studio 2022 compiler, however I couldn't find MSVC 2022 on the "Select Component Page" as you can see below image:
      41aa69f5-a996-4db7-847b-e9e6a378f1b0-image.png

      Only shows me MSVC 2019. How can I install the Qt 6.x with MSVC 2022?

      Thank you in advance!

      O Offline
      O Offline
      ollarch
      wrote on last edited by
      #2

      @nezihe Seems that is not available yet. You can install 2019 version and install 2019 compiler into Visual Studio. Don't forget to change the complier version on Project properties.

      calmstackC 1 Reply Last reply
      1
      • N nezihe

        Dear Qt Community,
        I would like to install Qt 6.x version with MS Visual Studio 2022 compiler, however I couldn't find MSVC 2022 on the "Select Component Page" as you can see below image:
        41aa69f5-a996-4db7-847b-e9e6a378f1b0-image.png

        Only shows me MSVC 2019. How can I install the Qt 6.x with MSVC 2022?

        Thank you in advance!

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

        @nezihe MSVC2019 Qt build should work with MSVC2022 just fine. Newer MS C++ compilers are compatible with each other.

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

        1 Reply Last reply
        4
        • N Offline
          N Offline
          nezihe
          wrote on last edited by
          #4

          Many thanks to you. You cleared my confusion. My problem is solved.

          1 Reply Last reply
          1
          • O ollarch

            @nezihe Seems that is not available yet. You can install 2019 version and install 2019 compiler into Visual Studio. Don't forget to change the complier version on Project properties.

            calmstackC Offline
            calmstackC Offline
            calmstack
            wrote on last edited by
            #5

            @ollarch I had a lot of problems with Qt6 and MSVC2022. It doesn't work for everything (e.g: gRPC + abseil).

            Christian EhrlicherC 1 Reply Last reply
            0
            • calmstackC calmstack

              @ollarch I had a lot of problems with Qt6 and MSVC2022. It doesn't work for everything (e.g: gRPC + abseil).

              Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @calmstack Qt6 works fine with MSVC2022 - what problems did you encounter?

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              0
              • T Offline
                T Offline
                thomas_arri
                wrote on last edited by
                #7

                The problem i have is to deal with <QUiLoader>. Header file is not found!

                Christian EhrlicherC 1 Reply Last reply
                0
                • T thomas_arri

                  The problem i have is to deal with <QUiLoader>. Header file is not found!

                  Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @thomas_arri said in Qt 6 with MSVC 2022:

                  The problem i have is to deal with <QUiLoader>. Header file is not found!

                  Then you should do what the documentation states:

                  Header: #include <QUiLoader>
                  CMake: find_package(Qt6 REQUIRED COMPONENTS UiTools)
                  target_link_libraries(mytarget PRIVATE Qt6::UiTools)
                  qmake: QT += uitools

                  Don't know what this has to do with the topic though.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  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