How to properly terminate QThread in Qt?
<p>Is this a correct way  terminate the thread ...</p>

<pre><code> if(m_ReviewImageThreadLoader !=NULL)
 {
   m_ReviewImageThreadLoader-&gt;quit();
   m_ReviewImageThreadLoader-&gt;wait();
   m_ReviewImageThreadLoader-&gt;terminate();
   delete m_ReviewImageThreadLoader;
   m_ReviewImageThreadLoader = NULL;
   qDebug()&lt;&lt;"m_ReviewImageThreadLoader closed"&lt;&lt;endl;
 }
</code></pre>

<p>... where <code>m_ReviewImageThreadLoader</code> is the thread object.</p>