From e24ab4976ad9f2667987f4d77e8c5f94f8840c2a Mon Sep 17 00:00:00 2001 From: "liangtie.qian" Date: Wed, 1 Mar 2023 14:27:32 +0800 Subject: [PATCH] Focusing on the current widget while switching to it --- src/DockAreaWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 6557ce7..2c45ee1 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -190,6 +190,8 @@ public: { parent->setUpdatesEnabled(true); } + if(m_CurrentWidget) + m_CurrentWidget->setFocus(); } /**