// ClearThread.cpp: implementation of the CClearThread class. // ////////////////////////////////////////////////////////////////////// #include "ClearThread.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CClearThread::CClearThread(QTextEdit *pEdit) { m_pEditWidget = pEdit; } CClearThread::~CClearThread() { } void CClearThread::run() { qDebug("clear thread start... ..."); if(m_pEditWidget) { m_pEditWidget->clear(); } qDebug("clear thread finished"); }