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,
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...
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hi high_flyer,
I not have a MDI application....
in that case you need to re implement closeEvent() of your main window.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
nowire75 (31st October 2007)
What about calling QApplication::closeAllWindows? It is a static slot.
nowire75 (31st October 2007)
Bookmarks