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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0
    • 5.2.1
    • Build tools: moc
    • None
    • 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
          Marc Langenbach
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            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