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. Title: QLineEdit in Linux Qt App Not Triggering Chinese Input (IBus)
Forum Updated to NodeBB v4.3 + New Features

Title: QLineEdit in Linux Qt App Not Triggering Chinese Input (IBus)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 152 Views
  • 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.
  • A Offline
    A Offline
    AimyGS
    wrote on last edited by
    #1

    Problem:
    Native QLineEdit in my Qt5.15.2 application cannot activate Chinese input via IBus on Linux. Chinese input works in terminals/text editors (e.g., Gedit), but not in Qt apps.

    Attempted Solutions:

    1. Set environment variables:
      bash
      export QT_IM_MODULE=ibus Also tried "xim"
    2. Confirmed that the IBus plugin for Qt gcc64 at:
      libibusplatforminputcontextplugin.so
      (Executable permissions are granted.)
    3. No ibus-qt package installed (only Qt4 versions seem available; no Qt5 version found).
    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2
      1. check dependencies
        ldd path/libibusplatforminputcontextplugin.so
      2. export QT_DEBUG_PLUGINS=1 to check if this plugin is loaded or run
        strace your_app to check if the plugin is loaded correctly.
      3. rebuild Qt with flag: -ibus from the source
      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