1、最上层
将计算量大的函数放在子线程里面,只把视图刷新放进定时器每20毫秒刷新一次
QTimer *timer = new QTimer(this);
connect(timer,&QTimer::timeout,this,&CenterMain::updateView();
time->start(30);
run()
{
forever{
if(m_center->m_bIsStopThread)
{
m_StopDelete = 1;
break;
}
m_center->DrawMotion();
msleep(30);
}
}