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

Changing the Qt version of a project in its settings does not change the qmake version used to make it until VS is restarted.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 3.1.0 (rev.02)
    • Build-time integration
    • None
    • Windows

    Description

      Steps to reproduce:

      • Create a Qt 5 project.
      • Upgrade it to Qt 6 in project settings.
      • Call msbuild and observe that Qt 5 qmake is being used.
      • Restart Visual Studio.
      • Call msbuild and observe that Qt 6 qmake is being used.

      The reason this occurs is the qtDir provided to QMakeExe is only set once during construction of QMake.cs. See https://github.com/qt-labs/vstools/blob/dev/QtVsTools.Core/QMake.cs#L29 and https://github.com/qt-labs/vstools/blob/dev/QtVsTools.Core/QMake.cs#L40 .

      Attachments

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

        Activity

          People

            heimrich Karsten Heimrich
            ali.demiralp Ali Can Demiralp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes