Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLineEdit in Qt6 not work with fcitx
Qt 6.11 is out! See what's new in the release blog

QLineEdit in Qt6 not work with fcitx

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jronaldJ Offline
    jronaldJ Offline
    jronald
    wrote on last edited by jronald
    #1

    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
    1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      While it might be a regression between Qt 5 and Qt 6, did you try a more recent version of fcitx ?

      jronaldJ Offline
      jronaldJ Offline
      jronald
      wrote on last edited by jronald
      #3

      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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        While it might be a regression between Qt 5 and Qt 6, did you try a more recent version of fcitx ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        jronaldJ 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          While it might be a regression between Qt 5 and Qt 6, did you try a more recent version of fcitx ?

          jronaldJ Offline
          jronaldJ Offline
          jronald
          wrote on last edited by jronald
          #3

          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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved