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

Contradictory statements about signal's return type

    XMLWordPrintable

Details

    • All
    • 40e9e42bc (dev), cd917e899 (6.6), 9752b5918 (6.5)

    Description

      One document says "Signals and slots can have return types, but signals or slots returning references will be treated as returning void." (https://doc.qt.io/qt-6/moc.html#signal-slot-return-types-cannot-be-references)

      But another one says "Signals are automatically generated by the moc and must not be implemented in the .cpp file. They can never have return types (i.e. use void)." (https://doc.qt.io/qt-6/signalsandslots.html#signals)

      Attachments

        For Gerrit Dashboard: QTBUG-116695
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            mikio_hirai Mikio Hirai
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes