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. Building Qt Applications with MSVC2022
Qt 6.11 is out! See what's new in the release blog

Building Qt Applications with MSVC2022

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 683 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.
  • T Offline
    T Offline
    Torsten Robitzki
    wrote last edited by
    #1

    Hello,
    I've developed a small (very small) Qt Application on MacOS and now, I want to build it on Windows11 using MSVC2022. I've used the online installer to install Qt. Now, I fail to see, what value to pass to Qt6_ROOT when building the application, using CMake.

    I've installed Qt under C:\Qt and under C:\Qt\6.11.1\mingw_64 folder that contains the package informations for CMakes find_package(). I reran the installation to see, if there is support for other compilers / runtimes that I had to include, but I found nothing.

    Now, I'm a little bit puzzled. Is it possible to use Qt with MSVC2022 with CMake? If so, how?

    best regards
    Torsten

    jsulmJ 1 Reply Last reply
    0
    • T Torsten Robitzki

      Hello,
      I've developed a small (very small) Qt Application on MacOS and now, I want to build it on Windows11 using MSVC2022. I've used the online installer to install Qt. Now, I fail to see, what value to pass to Qt6_ROOT when building the application, using CMake.

      I've installed Qt under C:\Qt and under C:\Qt\6.11.1\mingw_64 folder that contains the package informations for CMakes find_package(). I reran the installation to see, if there is support for other compilers / runtimes that I had to include, but I found nothing.

      Now, I'm a little bit puzzled. Is it possible to use Qt with MSVC2022 with CMake? If so, how?

      best regards
      Torsten

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

      @Torsten-Robitzki said in Building Qt Applications with MSVC2022:

      C:\Qt\6.11.1\mingw_64

      this is not for MSVC compiler.
      Install Qt for MSVC and also install Microsoft Visual Studio build toos (to get the compiler, it is not provided via Qt installer).

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

      1 Reply Last reply
      2
      • T Offline
        T Offline
        Torsten Robitzki
        wrote last edited by
        #3

        How to install Qt for MSVC? I have not found any support for MSVC in the online installer?

        1 Reply Last reply
        0
        • T Torsten Robitzki has marked this topic as solved
        • T Offline
          T Offline
          Torsten Robitzki
          wrote last edited by
          #4

          Ok, I rerun the installer again and finally found the option und "Qt".

          Thanks a lot!

          1 Reply Last reply
          1

          • Login

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