Can Qt signals return a value?
问题 Boost.Signals allows various strategies of using the return values of slots to form the return value of the signal. E.g. adding them, forming a vector out of them, or returning the last one. The common wisdom (expressed in the Qt documentation [EDIT: as well as some answers to this question ] ) is that no such thing is possible with Qt signals. However, when I run the moc on the following class definition: class Object : public QObject { Q_OBJECT public: explicit Object( QObject * parent=0 )