[Interest] Japanese text input on QTableWidget (Mac OS X)
clement.geiger at gmail.com
Thu Aug 30 17:41:04 CEST 2012
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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest