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

Having a dot.h header file without an accompanying dot.cpp causes project and moc issues.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • 1.1.7
    • 1.1.6
    • General
    • None
    • Visual Studio 2010; Microsoft Windows 7 Professional 64-bit

      When you have a header file with a different base name from the CPP file, the Visual Studio Add-In doesn't fully update the project's Generated Files (adding the appropriate moc_...cpp files) and doesn't correctly create the Custom Build Rule.

      First, create a new Qt Application, using the default selections. Create a header file, say "addinbugtest_p.h" and declare a class with a Q_OBJECT macro in it. Ensure the file "addinbugtest_p.cpp" doesn't exist in the project. When you save, the Add-In update process seems to create a moc_addinbugtest.cpp entry within "Generated Files/Debug", but the Release moc file is missing. If you look at the custom build rule that is generated on addinbugtest_p.h, you will find no commandline.

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

            jbornema Joerg Bornemann
            sirfutsalot Chris Kawano
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes