Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1116

qmake Settings In Configuration Folder Are Not Read Until Relaunch Of Project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 2.10.1 (rev.02)
    • General
    • None
    • Windows Version: Win 11 22621.1992,  Win 10 19045.3208
    • Windows

    Description

      I'm creating a basic qt class library project (.dll) on visual studio using qt extension.

      Steps

      1. Launch Visual Studio
      2. Create New Project
      3. Select Qt Class Library 
      4. Select the name and location of the project(Gave desktop). 
      5. Click "Next"
      6. Qt Wizard Launches
      7. Select the qt modules for debug and release (I have selected core gui widget)
      8. Continue by clicking next and finish.
      9. Once the project is ready. Go to the project location.
      10. You will notice the that a folder is present with the same name as current configuration. This folder contains things related to qmake, moc....
      11. Now open project settings by right clicking on the project.
      12. Under "Configuration Properties" -> "C/C++" -> "Additional Include Directories" -> "Edit" -> "Macros".
      13. Search for qt macros. Like $(Qt_LIBS_), $(Qt_DEFINES_)... will not be found.
      14. Same issue with other settings
      15. Close the Visual Studio.
      16. Launch the project again.
      17. This time all the macros and other qt settings are properly loaded.

       

      Problem is qt setting are read only if the qmake files are present before the project is launched. Due to this issue I'm not clear whether proper linking to qt libs is happening or not.

       

      Qt Version : 5.15.2

      Visual Studio 2019 Version: 16.11.27

      Qt Visual Studio Tools Version 2.10.1 (rev.2)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mecfc Miguel Costa
            abhivarma Sai Abhishek Varma K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes