[Interest] Japanese text input on QTableWidget (Mac OS X)

Clément Geiger clement.geiger at gmail.com
Thu Aug 30 17:41:04 CEST 2012


Hello there,

I'm running into a rather weird problem here.

My setup :
 - Mac OS X 10.7.4
 - Qt 4.8.1

I develop an application which is available in japanese. In this
application, there are several tables, represented by QTableWidget widgets.
In order to test it, I switched my keyboard layout to Japanese (Hiragana).
In this layout, several latin characters are combined into one kanji.

Now, if I try to edit some cell in one QTableWidget by simply starting to
type something, the first character is not recognized as a part of a kanji,
but stay in its latin form. Every following characters then acts normal.

On the other hand, when I start the editing by another way (eg by hitting
enter or double-clicking on the cell), everything goes fine.

I tried to intercept the keyPressEvent on QTableWidget level, start the
editing and pass the event to the underlying LineEdit manually, but it
didnt do any good.

Do you have any suggestion ?

Thanks

Clément
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120830/6021058e/attachment.html>


More information about the Interest mailing list