Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5.0
-
None
-
-
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)