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
    • Build-time integration
    • 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

          For Gerrit Dashboard: QTVSADDINBUG-855
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes