[FIX]: Unable to switch input method in search box.

This commit is contained in:
iaom 2021-06-02 20:55:48 +08:00
parent 3fab5d913d
commit e82e3292c8
1 changed files with 2 additions and 1 deletions

View File

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