Click close button, the window will close and be deleted, if no new new one will make a mistake, how to just can set the click close button, the window is hidden and not close and delete?
The window is a child window QMdiArea
QMdiSubWindow * MDIWin_1;
CPD_WAVE * MDI_1;
MDIWin_1 - & gt; SetWidget (MDI_1);
MainFrame_mdi - & gt; AddSubWindow (MDIWin_1);
CodePudding user response:
I rewrote the MDI_1 colseevent function, but click close button, the window or deletedvoid CPD_WAVE: : closeEvent (QCloseEvent * event) {
This - & gt; Hide ();
}
CodePudding user response:
Customize the title bar?CodePudding user response:
The default window title bar is made up of system management, according to the upstairs said, a custom title bar can be solved, is a bit of trouble