I have a simple MainWindow application that contains one pushbutton. The pushbutton action starts a modeless dialog window (using "show"). When the MainWindow closes, the modeless dialog is still hanging out there. How do you close a modeless dialog from the MainWindow app? Should there be a signal/slot mechanism to perform the modeless dialog close?