I have a QWidget derived object, and "setWindowModality(Qt::WindowModal)" to it.
Then I call "show()", however, the process did not get blocked there, although the widget is modal indeed.

What I want is, how to make it work like "CDialog:: DoModal()" in MFC, the process will not go further until the dialog is dismissed.