From dd91b310b96a445e0e49549c370917cd6a4472da Mon Sep 17 00:00:00 2001 From: "huheng@kylinos.cn" Date: Mon, 9 Jan 2023 17:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(UI=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E4=B8=BA=E8=8F=9C=E5=8D=95=E6=8E=A7=E4=BB=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=88=B6=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/view/titlebar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/view/titlebar.cpp b/ui/view/titlebar.cpp index 6195321..dbb8fe8 100644 --- a/ui/view/titlebar.cpp +++ b/ui/view/titlebar.cpp @@ -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);