From e82e3292c8f0dd54fb514080d4e43d2bd3ffcee3 Mon Sep 17 00:00:00 2001 From: iaom Date: Wed, 2 Jun 2021 20:55:48 +0800 Subject: [PATCH] [FIX]: Unable to switch input method in search box. --- src/input-box.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input-box.cpp b/src/input-box.cpp index 416c69a..50bdf6c 100644 --- a/src/input-box.cpp +++ b/src/input-box.cpp @@ -194,7 +194,8 @@ bool SearchBarHLayout::eventFilter(QObject *watched, QEvent *event) { */ SearchLineEdit::SearchLineEdit() { this->setFocusPolicy(Qt::ClickFocus); - this->installEventFilter(this); + this->setAttribute(Qt::WA_InputMethodEnabled); +// this->installEventFilter(this); // this->setContextMenuPolicy(Qt::NoContextMenu); this->setMaxLength(100);