title: Qt: meaning of slot return value?
body: <p>According to the documentation the return value from a slot doesn't mean anything.<br>
  Yet in the generated moc code I see that if a slot returns a value this value is used for something. Any idea what does it do?</p>
  
  <hr>
  
  <p>Here's an example of what I'm talking about. this is taken from code generated by moc. 'message' is a slot that doesn't return anything and 'selectPart' is declared as returning int.</p>
  
  <pre><code>case 7: message((*reinterpret_cast&lt; const QString(*)&gt;(_a[1])),(*reinterpret_cast&lt; int(*)&gt;(_a[2]))); break;
  case 8: { int _r = selectPart((*reinterpret_cast&lt; AppObject*(*)&gt;(_a[1])),(*reinterpret_cast&lt; int(*)&gt;(_a[2])));
      if (_a[0]) *reinterpret_cast&lt; int*&gt;(_a[0]) = _r; }  break;
  </code></pre>