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

A different Qt version from one in Qt Project Settings is used in compilation

    XMLWordPrintable

Details

    • Windows

    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.

       

      Attachments

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

        Activity

          People

            ali.demiralp Ali Can Demiralp
            hitoshiito Hitoshi Ito
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes