Hi,
I have this problem: when I start my program, I have a main window, after I open a new window (QDialog and QMainWindow), and I have two or more windows on my screen.
I want to close all windows when I close the main window...
Printable View
Hi,
I have this problem: when I start my program, I have a main window, after I open a new window (QDialog and QMainWindow), and I have two or more windows on my screen.
I want to close all windows when I close the main window...
Hi high_flyer,
I not have a MDI application....
in that case you need to re implement closeEvent() of your main window.
What about calling QApplication::closeAllWindows? It is a static slot.