QLineEdit in Qt6 not work with fcitx
Solved
General and Desktop
-
Env
- Manjaro KDE
- Qt 6.2.0
- fcitx 4.2.9.8
- ~/.pam_environment
GTK_IM_MODULE DEFAULT=fcitx QT_IM_MODULE DEFAULT=fcitx XMODIFIERS DEFAULT=\@im=fcitx
Reproduce
- Create a new Qt project in Qt Creator
- Edit
CmakeLists.txt
to use Qt5 or Qt6 - Add a
QLineEdit
on the main windows - Build and run
- Focus on the
QLineEdit
- Press
Ctrl+Space
Problem
- Edit
CmakeLists.txt
to use Qt5,Ctrl+Space
can be used to switch input mehtod and it works fine - Edit
CmakeLists.txt
to use Qt6,Ctrl+Space
does nothing
-
UPDATE
Fixed by swithing to fcitx5.
BTW, it crashes by accident and be solved by deleting
~/.config/fcitx5
and reconfiguring.
@SGaist said in QLineEdit in Qt6 not work with fcitx:
did you try a more recent version of fcitx ?
Not yet, it's said fcitx 4 is under maintance only now, I'll try fcitx 5
Thanks
-
Hi,
While it might be a regression between Qt 5 and Qt 6, did you try a more recent version of fcitx ?
-
UPDATE
Fixed by swithing to fcitx5.
BTW, it crashes by accident and be solved by deleting
~/.config/fcitx5
and reconfiguring.
@SGaist said in QLineEdit in Qt6 not work with fcitx:
did you try a more recent version of fcitx ?
Not yet, it's said fcitx 4 is under maintance only now, I'll try fcitx 5
Thanks