title: Why is important to include ".moc" file at end of a Qt Source code file?
body: <p>Why is it important to add an include for .moc file in a Qt cpp source code?</p>
  <p>This is a common step used in several Qt samples, including this one:
  <a href="http://doc.qt.io/qt-5/qttestlib-tutorial1-example.html;" rel="nofollow noreferrer">http://doc.qt.io/qt-5/qttestlib-tutorial1-example.html;</a> where the line <code>#include &quot;testqstring.moc&quot;</code> should be included in the end of the file.</p>
  <p>I don't understand exactly why this is necessary.</p>