From f12b8385a06d45141810941473723e2e814f2caf Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Thu, 8 Dec 2022 17:51:06 +0800 Subject: [PATCH] Fix the problem that ui responded incorrectly while regaining focus. --- frontend/control/stack-pages/search-result-page.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/control/stack-pages/search-result-page.cpp b/frontend/control/stack-pages/search-result-page.cpp index 14fc0e8..25cd398 100644 --- a/frontend/control/stack-pages/search-result-page.cpp +++ b/frontend/control/stack-pages/search-result-page.cpp @@ -174,6 +174,8 @@ void SearchResultPage::initUi() // m_splitter->move(this->rect().topLeft().x() + 18, this->rect().topLeft().y() + 18); m_resultArea = new ResultArea(this); m_detailArea = new DetailArea(this); + m_resultArea->setFocusPolicy(Qt::NoFocus); + m_detailArea->setFocusPolicy(Qt::NoFocus); m_hlayout->addWidget(m_resultArea); m_hlayout->addWidget(m_detailArea);