Thank you. but whether I accept or ignore the event, still don't work.
I tried to call qApp->quit() instead of qApp->closeAllWindows(), it seems to work, but the destructor of the other windows opened are not called.
I open this other dialogs like this:
DlgTabla *t = new DlgTabla();
t->show();
DlgTabla *t = new DlgTabla();
t->show();
To copy to clipboard, switch view to plain text mode
A possible solution could be: construct the dialog with parent the main dialog:
DlgTabla *t = new DlgTabla(this);
t->show();
DlgTabla *t = new DlgTabla(this);
t->show();
To copy to clipboard, switch view to plain text mode
The destructor is called, however all windows I show shares the same element of the main dialog in the task bar.
There another way to close all windows and to call their destructors?
Or as alternative solution, show this other dialogs without sharing the same element in the task bar?
Thanks
Bookmarks