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

Qt Visual Studio Addin: moc steps are not added correctly when importing a .pro file using Qt->Open Qt Project File

    XMLWordPrintable

Details

    • dea2546a9b597a92d91a683b626991b4c58e8402

    Description

      Importing a .pro file for a pre-existing Qt project is not working for the Qt Addin v1.1.6. To reproduce the problem, use Qt->Open Qt Project File on an existing project. Building the project may result in a moc'ed file not being generated or being created in the wrong place (directly in the Debug or Release directory) rather than in GeneratedFiles\$ConfigurationName.

      This reproduces using Visual Studio 2008 and large-ish project. In my case, one file did not have its moc step added, the rest were OK. A popup message also appears during the importation stage which indicates that a moc step was not added.

      The workaround is to use qmake -tp vc then devenv <projectname>.vcproj /useenv to use the qmake generated vcproj file.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes