🐞 fix(UI模块): 为菜单控件添加父控件
This commit is contained in:
parent
7d7279ee30
commit
dd91b310b9
|
@ -191,7 +191,7 @@ void Titlebar::initMenu()
|
|||
m_menuBtn->setAutoRaise(true);
|
||||
m_menuBtn->setContentsMargins(4, 0, 4, 0);
|
||||
|
||||
m_menu = new QMenu();
|
||||
m_menu = new QMenu(this);
|
||||
// 创建Action
|
||||
QAction *actionHelp = new QAction(m_menu);
|
||||
QAction *actionAbout = new QAction(m_menu);
|
||||
|
|
Loading…
Reference in New Issue