Created attachment 194364 [details] Qt6 plugin, the reported cursor is at the beginning of preedit When using Qt 6 plugin, the cursor rectangle (Qt::ImCursorRectangle) reported by libreoffice is at the beginning of preedit, not at the cursor of preedit. Comparing to Gtk3, the position is reported correctly. For example, if the preedit is like "あゝ|ああ" ( "|" means the position at the cursor), the Qt6 plugin will report cursor rectangle at the very beginning, while Gtk3 plugin will report the position at cursor "|". Can be easily reproduced with mozc or anthy (with either ibus, or fcitx5). With default configuration of mozc/anthy, press "a", "a", "a", "a", space, left, space, will reproduce the issue. See the screen shot for more details.
Created attachment 194365 [details] Gtk3 plugin, which works as expected. Gtk3 screenshot, works properly.
Thank you for the report! I think this is the same issue as already tracked in bug 160838. Michael, correct me if I'm wrong. *** This bug has been marked as a duplicate of bug 160838 ***