PDA

View Full Version : keyPressEvent() is not received in GraphicsItem/GraphicsScene



Sandip
10th February 2010, 07:49
Hello,

I am facing a strange behavior in my application. I have set Japanese as input language and Hiragana as input method. I have reimplemented keyPressEvent in MyGraphicsItem (inherited from QGraphicsTextItem) and MyCustomScene ( inherited from QGraphicsScene). The keyPressEvent is not delivered for characters and numbers, while it is delivered for other keys (Ctrl, Alt, Backspace, Enter, etc).

Is there anything needs to be done for Japanese language? Any help will be appreciated.

Thanks in advance.

Sandip

Sandip
10th February 2010, 13:07
I have tested it with sample QWidget and found that it is also not receiving keyPressEvent if we will change input method to "Hiragana".