Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36834

MOC does not create signals if signals are precedded by operator implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.3.0
    • Component/s: Build tools: moc
    • Labels:
      None
    • Commits:
      2b0f02aa5cc0f7d1b460d2d324d5d08c6f6d61b9

      Description

      If you run the MOC on the attached header file, it does not create implementations for the signals.
      When removing the implementation of the operator (replace "#if 0" with "#if 1" in line 24), the signals
      are created.

      The MOC of Qt 4.8 does not show this defect.

        Attachments

        1. x.cpp
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              ogoffart Olivier Goffart (Woboq GmbH)
              Reporter:
              mlangen Marc Langenbach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes