title: Real world code examples about usage of four special slots of Qt Test
body: <p>I am studying about Qt Test and got to know there are four special slots which are executed before and after test cases.</p>
  <blockquote>
  <ol>
  <li>initTestCase() will be called before the first testfunction is executed.</li>
  <li>cleanupTestCase() will be called after the last testfunction was executed.</li>
  <li>init() will be called before each testfunction is executed.</li>
  <li>cleanup() will be called after every testfunction.</li>
  </ol>
  </blockquote>
  <p>I know how to use them as a clear example is there in Qt Documentation.</p>
  <p>But my problem here is I want to see <strong>real world usage</strong>, not printing an example qDebug, of those slots. What can be changed within those slots?</p>