Your slots can return a value.
However, if the slot is connected to the signal and called when the signal is issued, the return value will be ignored.
But the slot is a normal member function and can be called like any other function. In this case, the return value can be used by the caller.
This is indicated in the document you are referencing:
-, ++ .