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 .
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 .
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.
Bookmarks