不好意思,有反应了,但是现在就是msleep之后,整个程序就停止了,别的按钮都没反应了阿。这是为什么呢?我怎么才能开始它呢?
主程序中: connect(ui.zanting1Button,SIGNAL(clicked()),&thread,SLOT(zanting1()));
线程里面public slots:
void zanting1();
void RenderThread:: zanting1()
{
if(flag==false) flag=true;
while(flag){msleep(1000);}
}
但是还是进入了while。界面就没反应了。没法再相应别的按钮了