Window.setDestroyWithParent

void setDestroyWithParent(bool setting)

If setting is true, then destroying the transient parent of window will also destroy window itself. This is useful for dialogs that shouldn’t persist beyond the lifetime of the main window they're associated with, for example.

Parameters

settingwhether to destroy window with its transient parent