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()事件循环比较快些,也省资源
用信号的槽的连接,还很方面的切换两个界面
阅读(1565) | 评论(2) | 转发(2) |