[immodule-qt] QInputContext Implementation

Daisuke Kameda kaminmat at cc.rim.or.jp
Wed Jul 23 06:58:22 PDT 2008


Hello Manish,

I read the source code a little, but I feel this sample code unnatural
as Qt application. And, probably you didn't understand programing style
of QInputContext.

The one of the best sample is attached as QXIMInputContext in Qt/X11.
Please check this code.

Regards,

-- 
Daisuke Kameda
   Japan KDE Users' Group:  President
     mailto:daisuke at kde.gr.jp  http://www.kde.gr.jp/~daisuke/
   immodule for Qt Project:  Project Maintainer
     http://www.freedesktop.org/wiki/Software_2fimmodule_2dqt
   SMG Co., Ltd.:  Engineering Creator
     mailto:kameda at smg.co.jp  http://www.smg.co.jp/
     http://www.smg.co.jp/opensource/CommonDesktopInfrastructure/


manish.s.sharma at nokia.com wrote:
> Hi All,
> 
> For quite some time I am working on QInputContext implementation. I want
> to implement this interface to make my own Input Method to do some
> specific actions when the text is entered in a text editor. I searched a
> lot on internet, but I cant find any example or way to implement. 
> 
> Now I have implemented this class and attached this input context to a
> QTextEdit with setInputContext. But I am not able to get any callback
> when keys are pressed, though I am getting callback on reset() and
> setFocusWidget function when focus on the QTextEdit changes.
> 
> I am not able to start the communication between Widget and Input
> Context. What is the use of inputMethodEvent? I think when we send any
> event from input context this function in a widget should get a call.
> What are QInputMethodEvent? How do I use this?
> 
> I have attached the source code.
> 
> Please help me. I cant find any reference :(, very eager to get response
> from you.



More information about the immodule-qt mailing list