QDialog调用exec函数后,通常会阻塞其他窗口
QDialog dlg(this);
dlg.setModal(false);
dlg.show();
dlg.exec;
增加setModal和show之后,代码还是会阻塞到dlg退出后,但不会阻塞UI,可以操作dlg之外的窗口。
QDialog调用exec函数后,通常会阻塞其他窗口
QDialog dlg(this);
dlg.setModal(false);
dlg.show();
dlg.exec;
增加setModal和show之后,代码还是会阻塞到dlg退出后,但不会阻塞UI,可以操作dlg之外的窗口。