Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to setup Qt VS Tools

Unable to setup Qt VS Tools

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 2.1k 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.
  • M Offline
    M Offline
    MaxYaffe
    wrote on last edited by
    #1

    I'm trying to install Qt VS Tools for VS 2017 on a WIndows 7 Pro machine. I can't seem to get the environment set up correctly. The value for $(QTDIR) says ERROR: Qt install dir not found. The webpage "doc.qt.io/qtvstools/qtvstools-managing projects.html" says: The project might have an invalid Qt build specified. Earlier it says: "To change QWt version for all projects in a solution, select Change Solution's Qt Version in the context menu. ..." Where is this everlovin' context menu? I can't find anything that allows the Solution's Qt Version to be set.

    jsulmJ Q 2 Replies Last reply
    0
    • M MaxYaffe

      I'm trying to install Qt VS Tools for VS 2017 on a WIndows 7 Pro machine. I can't seem to get the environment set up correctly. The value for $(QTDIR) says ERROR: Qt install dir not found. The webpage "doc.qt.io/qtvstools/qtvstools-managing projects.html" says: The project might have an invalid Qt build specified. Earlier it says: "To change QWt version for all projects in a solution, select Change Solution's Qt Version in the context menu. ..." Where is this everlovin' context menu? I can't find anything that allows the Solution's Qt Version to be set.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @MaxYaffe said in Unable to setup Qt VS Tools:

      Where is this everlovin' context menu?

      Right mouse click I guess at the solution

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

      M 1 Reply Last reply
      0
      • M MaxYaffe

        I'm trying to install Qt VS Tools for VS 2017 on a WIndows 7 Pro machine. I can't seem to get the environment set up correctly. The value for $(QTDIR) says ERROR: Qt install dir not found. The webpage "doc.qt.io/qtvstools/qtvstools-managing projects.html" says: The project might have an invalid Qt build specified. Earlier it says: "To change QWt version for all projects in a solution, select Change Solution's Qt Version in the context menu. ..." Where is this everlovin' context menu? I can't find anything that allows the Solution's Qt Version to be set.

        Q Offline
        Q Offline
        Quawetim
        wrote on last edited by
        #3

        @MaxYaffe, did you create a system env variable with name QTDIR?

        M 1 Reply Last reply
        0
        • Q Quawetim

          @MaxYaffe, did you create a system env variable with name QTDIR?

          M Offline
          M Offline
          MaxYaffe
          wrote on last edited by
          #4

          @Quawetim
          Yes, from the VS 2017 Developer Command Prompt:
          QTDIR=C:\Qt\Qt5.12.4\5.12.4\msvc2017

          But from within VS 2017, looking at the Macros, $(QTDIR)= ERROR: Qt install dir not found.

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @MaxYaffe said in Unable to setup Qt VS Tools:

            Where is this everlovin' context menu?

            Right mouse click I guess at the solution

            M Offline
            M Offline
            MaxYaffe
            wrote on last edited by
            #5

            @jsulm
            Good call. There is a right click menu hovering over the Solution in the Solution Explorer. And it has a selection "Change Soluton's Qt Version. I don't know why I didn't see it before. I think I jumped right to Properties.

            Clicking the Change Solution's Qt Version shows:
            $(QTDIR)
            QT5.12.4 for msvc2017_32 <-- highlighted
            QT5.12.4 for msvc2017_64
            $(DefaultQtVersion)

            Selecting $(QTDIR) now gives the correct value for $(QTDIR) in the macros.
            And ... wait for it ... switching back to the QT5...._32 selection NOW GIVES THE RIGHT VALUE.

            I think what is going on is that the solution was originally a non-Qt solution. I added a new Qt project to it but the solution-level settings weren't initialized.

            LSS - You may have to explicitly initialize the QT version in an old solution. It may look initialized but it isn't. Check the $(QTDIR) macro to be sure.

            Thanks
            Max

            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