Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
2.10.1 (rev.02)
-
None
-
Windows Version: Win 11 22621.1992, Win 10 19045.3208
Description
I'm creating a basic qt class library project (.dll) on visual studio using qt extension.
Steps
- Launch Visual Studio
- Create New Project
- Select Qt Class Library
- Select the name and location of the project(Gave desktop).
- Click "Next"
- Qt Wizard Launches
- Select the qt modules for debug and release (I have selected core gui widget)
- Continue by clicking next and finish.
- Once the project is ready. Go to the project location.
- You will notice the that a folder is present with the same name as current configuration. This folder contains things related to qmake, moc....
- Now open project settings by right clicking on the project.
- Under "Configuration Properties" -> "C/C++" -> "Additional Include Directories" -> "Edit" -> "Macros".
- Search for qt macros. Like $(Qt_LIBS_), $(Qt_DEFINES_)... will not be found.
- Same issue with other settings
- Close the Visual Studio.
- Launch the project again.
- 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)