CNoAuthorizationqqq = new CNoAuthorization(this);
QObject::connect(CNoAuthorizationqqq->returnBtn, SIGNAL(clicked()), this, SLOT(show()));
}
CMainWindow :: ~CMainWindow() { }
void CMainWindow :: ChooseMachiningType1() { close(); CNoAuthorizationqqq->exec(); //CNoAuthorization noAuthorization(this); //noAuthorization.exec(); }
void CMainWindow :: ChooseMachiningType2() { CNoAuthorization noAuthorization(this); noAuthorization.exec(); }
|
还是感觉先用指针new出来,再exec()事件循环比较快些,也省资源
用信号的槽的连接,还很方面的切换两个界面
阅读(620) | 评论(0) | 转发(0) |