Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Error while compiling Qt app in Microsoft Visual Studio
Forum Updated to NodeBB v4.3 + New Features

Error while compiling Qt app in Microsoft Visual Studio

Scheduled Pinned Locked Moved Solved Qt 6
2 Posts 1 Posters 339 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.
  • R Offline
    R Offline
    Reza2021
    wrote on 9 Jul 2021, 20:17 last edited by
    #1

    I installed MVS 2019 community edition. I also installed the Qt:
    1.png

    Then I tested if Qt works properly by making a project in Qt creator. After compiling an empty window appears indicating proper working of Qt. Then, I tried to use Qt in MVS. I first installed Qt tools and registered one Qt version. I added qmake in C:\Qt\6.1.2\msvc2019_64\bin in the Qt tools.
    Then I made a qt project in MVS:
    2.png
    and confirming the version I registered before:
    3.png
    However, after I compile the program, I get errors:
    4.png

    What is the origin of these errors?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Reza2021
      wrote on 10 Jul 2021, 22:24 last edited by
      #2

      Based on a Youtube comment this is the solution:
      1- Right click on the project name and select properties.
      2- Configuration properties -> General.
      3- Change the "C++ Language standard" to "ISO C++17 standard".

      1 Reply Last reply
      0

      1/2

      9 Jul 2021, 20:17

      • Login

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