hi
i m implementing and stopping the thread..but it is not working properly..
thread is not stopping properly...
check where i have done the mistake in following code....
QDirThread:: QDirThread(QObject*parent):QThread(parent)
{
m_bAbort = false;
}
QDirThread::~ QDirThread()
{
m_bAbort = true;
}
void QDirThread::run()
{
if(!m_bAbort)
{
DirView(strPath);
}
else
return;
}
void QDirThread::dirViewSleep()
{
usleep(25000);
}
void QDirThread::stop()
{
m_bAbort = true;
}
void QDirThread:irView(QString strPath)
{
//recursivly loading directory
}
Bookmarks