🐞 fix(UI模块): 为菜单控件添加父控件

This commit is contained in:
huheng@kylinos.cn 2023-01-09 17:08:03 +08:00
parent 7d7279ee30
commit dd91b310b9
1 changed files with 1 additions and 1 deletions

View File

@ -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);