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. Update $(Qt_IncludePath_) in visual studio after updating qt installation
Forum Updated to NodeBB v4.3 + New Features

Update $(Qt_IncludePath_) in visual studio after updating qt installation

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 2.3k 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
    testOnly
    wrote on last edited by testOnly
    #1

    Just updated my installation from 5.14.1 to 5.14.2(prebuilt windows binaries) and now i have a problem. I'm using visual studio with qt addon, did update paths in "Extensions -> Qt vs tools -> qtoptions" but project created before update still has $(QT_INCLUDEPATH_) set to 5.14.1 paths which is not exists anymore (preview from macro viewer).
    At the same time, in fact project is builds with 5.14.2 but wrong macro definition breaks code highlighting. Can't find any ways to edit\update macro. Any ideas? Thanks in advance.

    //ps. Thankyou for edit which makes my question being unreadable and lose comment to picture. I insist on named link instead of inplace picture.

    1 Reply Last reply
    0
    • codebitC Offline
      codebitC Offline
      codebit
      wrote on last edited by
      #2

      For the record, if anybody's having this same problem:
      In Solution Explorer, right click on the project name -> Qt -> "Upgrade to latest Qt project format version".

      P.S. I'm using VS2019 and Qt extension version is 2.5.1.

      1 Reply Last reply
      4
      • M Offline
        M Offline
        MiklYarochkin
        wrote on last edited by
        #3

        Hello,

        I am having the same problem.
        And @codebit solution is not helping in my case: there is no such an option as "Qt -> "Upgrade to latest Qt project format version"

        6808e994-e9d6-4330-aa15-18e05a3b89d5-image.png

        Any ideas where I should change it?

        The only option I see now is to create an empty project, where i checked it is working fine, and move files from my project there.

        Mikl

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MiklYarochkin
          wrote on last edited by
          #4

          Hello,

          I solved it

          "Change Solution Qt version" to $(DefaultQtVersion) and back with a restart in between made a trick.

          1 Reply Last reply
          1
          • Pl45m4P Pl45m4 referenced this topic on

          • Login

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