CodePudding user response:
https://blog.csdn.net/p942005405/article/details/100931950Excerpt:
QWidget * lTitleBar=mDock - & gt; TitleBarWidget ();
QWidget * lEmptyWidget=new QWidget ();
MDock - & gt; SetTitleBarWidget (lEmptyWidget);
The delete lTitleBar;