SHARE
TWEET

Untitled

a guest Dec 18th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(m_ReviewImageThreadLoader !=NULL)
  2.  {
  3.    m_ReviewImageThreadLoader->quit();
  4.    m_ReviewImageThreadLoader->wait();
  5.    m_ReviewImageThreadLoader->terminate();
  6.    delete m_ReviewImageThreadLoader;
  7.    m_ReviewImageThreadLoader = NULL;
  8.    qDebug()<<"m_ReviewImageThreadLoader closed"<<endl;
  9.  }
  10.    
  11. QThread *m_ReviewImageThreadLoader = new QThread;
  12. MyObject *mo = new MyObject;
  13. mo->moveToThread(m_ReviewImageThreadLoader);
  14. m_ReviewImageThreadLoader->start();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top