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

Problem with multiple projects using different qt version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 3.2.0
    • Build-time integration
    • None
    • Visual Studio 17.10
    • Windows

    Description

      Hello,

      When working with two projects using different Qt versions, we noticed an issue with the latest version of the Qt Visual Studio plugin (3.2.0). The problem was not present in previous versions.

       

      Project A is configured with Qt 6.5.3

      Project B is configured with Qt 6.3.2

      Visual Studio 17.10 is used as IDE.

       

      Steps to reproduce:

      Open Project A and Project B at the same time.

      Rebuild Project A (no issues)

      Rebuild Project B (no issues)

      Keep Project B open in VS and close Project A

      Reopen a new instance of VS with Project A.

      Build Project A - building error.

       

      The problem is that moc'ing is (re)performed using the wrong version, Qt 6.3.2 instead of Qt 6.5.3. If I fully rebuild project A again instead of using a normal build, everything works fine. It seems like the build is using $(QtVarsWorkDir) of the other Visual Studio instance.

       

       

       

      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
            bobflow Roberto Toldo
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes