Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
3.2.0
Description
A different version of Qt from one in Qt Project Settngs is used in compiling
On Visual Studio + QT VS Tools, when a user is working with going back and forth between two projects where different Qt versions are used, the Qt version used in one project is unexpectedly used in another project.
How to reproduce the issue :
1) Create new QtConsoleApplication (project-A), and place the line below in main() :
qDebug("Qt version : %x", QT_VERSION);
2) Build/run it with Qt 6.7.2,
3) Copy the whole directory and rename solution file (project-A.sln -> project-B.sln)
4) Open the project-B solution file, navigate Properties -> Configuration Properties -> Qt Project Settings -> Qt Installation, change Qt version from 6.7.2 to 6.8.0, and build it
5) Open project-A again, only compile main.cpp using Ctrl-F7 (not rebuild whole solution)
6) Now it unexpectedly tries to use Qt 6.8.0 for compiling main.cpp. If the build completed successfully, run the application to check the Qt version.
This issue is reproduced as well when other Qt versions are used in step 4 (for example, Qt 6.6.3) instead of 6.8.0.