Re: How to close all windows that were created in main()?
Originally Posted by Mister_Crac
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.
Bookmarks