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

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

      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.

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

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

              Created:
              Updated:

                There are 2 open Gerrit changes