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

Q_OBJECT inside a "#if false/#endif" block

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 2.4.0
    • None
    • Windows

    Description

      If a source file holds

      #if false
      class foo {
        Q_OBJECT
      };
      #endif
      

      then the file gets recognized as MOC-type file and changes the compilation type whenever the file is saved to disk?! Aparently even then the Q_OBJECT needs to be commented out extra..

      Could not test with any newer plugin version as none of them works with VS2019.

      Attachments

        Issue Links

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

          Activity

            People

              heimrich Karsten Heimrich
              wwebber Wilhelm Weber
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes