事件循环

 QCoreApplicaton::exec()
 QApplication::exec()
 QDialog::exec()
 QThread::exec()
 QDrag::exec()
 QMenu::exec()

如果QWidget需要需要做模态

Table of Contents