It seems that exec block the test...? It stops in the sub window. The sub sub window is shown only when I close the sub window or click the button in sub window.
What I expect to see in the test:
the main window is shown
the button in main window is clicked
the sub window is shown due to the button in the main window is clicked
the button in sub window is clicked
the sub sub window is shown.....
This is expected. If you launch a nested event loop, the control will be passed to that and there is no way the test can continue. See the note in the docs about testing QDialog for how to handle this.
It seems that exec block the test...? It stops in the sub window. The sub sub window is shown only when I close the sub window or click the button in sub window. What I expect to see in the test: the main window is shown the button in main window is clicked the sub window is shown due to the button in the main window is clicked the button in sub window is clicked the sub sub window is shown.....