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

Problem with moc since vsin 3.3.1.1, when slot function enclosed with a macro

    XMLWordPrintable

Details

    • Windows
    • 095833c1e (dev), c66a0ca71 (dev)

    Description

      Tried by creating a basic project from Visual Studio.

      Enclose slot function with a macro:

      public Q_SLOTS:
      void func1();
      #ifdef Q_OS_WIN
      void func2();
      #endif

      func2 is not added in moc_.

      Attachments

        1. qt-vsaddin-msbuild-3.3.1-rev.39.zip
          149 kB
          Karsten Heimrich
        2. qt-vsaddin-msvc2019-x86-3.3.1-rev.38.vsix
          18.12 MB
          Karsten Heimrich
        3. qt-vsaddin-msvc2022-arm64-3.3.1-rev.39.vsix
          16.89 MB
          Karsten Heimrich
        4. qt-vsaddin-msvc2022-x64-3.3.1-rev.38.vsix
          19.66 MB
          Karsten Heimrich
        5. Screenshot 2025-02-26 at 14.33.48.png
          72 kB
          David Hussey

        Issue Links

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

          Activity

            People

              mecfc Miguel Costa
              tommimtauriainen Tommi M. Tauriainen
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes