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)
Attachments
For Gerrit Dashboard: QTBUG-116695 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
501391,2 | Doc: remove erroneous statement that signals can't have return types | dev | qt/qtbase | Status: MERGED | +2 | 0 |
502312,2 | Doc: remove erroneous statement that signals can't have return types | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
502313,2 | Doc: remove erroneous statement that signals can't have return types | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |