PDA

View Full Version : QMdiSubWindow not delet when click the X button.



SamSong
20th May 2009, 06:23
Hi trolls,
I use QMdiArea in my application, I want the subwindow does not closed or deleted when I click the X button , Maybe just hidden, what should i do . Thanks .

wysota
20th May 2009, 08:21
Don't set the WA_DeleteOnClose attribute on the subwindow. Just make sure you keep the pointer to the subwindow somewhere so that you can access it later. You can also minimize the subwindow instead of closing/hiding it.