If my SubWindow in the above give example is not a separate class and child of the MainWindow how should I use the closeEvent of SUbWindow.

Thanks

Jothy