Quote Originally Posted by Mister_Crac View Post
If you create more than one window inside of main(), how do destroy all of them when the main window is closed by the user? So he does not have to close all windows manually?
Try the static/slot function QApplication::closeAllWindows(). Documentation to be found here.