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

moc command for generated QMainWindow header file refers directly to filename instead of %(fullPath) in VS2010

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 1.1.10
    • 1.1.6
    • General
    • None
    • WinXP Professional SP3, german
      VS 2010 10.0.30319.1, german
      not tested in other environments

    Description

      When creating a new Qt Application, a header file is generated which contains the derived QMainWindow class. The moc command associated with this file refers directly to the file instead of using %(fullPath). This causes a moc error when moving the file to a subdirectory. It's no big deal, but should be corrected.

      Steps:

      • create new project "qttest1"
      • select Qt Application, use default settings
      • watch properties of generated qttest1.h (containing the QMainWindow)
      • select "custom build tool"
      • command line says: "$(QTDIR)\bin\moc.exe" <defines> <includes> "qttest1.h" <output>
      • command line should say: "$(QTDIR)\bin\moc.exe" <defines> <includes> "%(fullPath)" <output>

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            pastagod Alexander Reum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes