It will delete the dialog once the control returns to the main event loop. The dialog's event loop has deferred delete capabilities disabled.
You should listen to accepted() and rejected() signals if you care how the dialog was closed. If you don't care then closed() signal(!) is fine.
Bookmarks