How to let fcitx work with Qt6?

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

  1. Create a new Qt project in Qt Creator
  2. Edit CmakeLists.txt to use Qt5 or Qt6
  3. Add a QLineEdit on the main windows
  4. Build and run
  5. Focus on the QLineEdit
  6. 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

Do you have installed fcitx5-qt6-git? That’s package is probably required to work with Qt6. AUR (en) - fcitx5-qt6-git

1 Like

No, fcitx 4.2.9.8 is used

The latest version is Fcitx5 and Fcitx4 is under maintenance now. In other words, probably you won’t be able to get fcitx4 work with Qt 6.2.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.