[immodule-qt] Re: Question about deletion of the method of QInputContext

Daisuke Kameda kaminmat at cc.rim.or.jp
Sun Jan 9 14:49:12 EET 2005


Lars Knoll <lars at trolltech.com> wrote:

> > 2. About setHolderWidget() and holderWidget().
> > I think that this lack may lead to unsuitable operation. Actually,
> > when XIM is used in style which is not on the spot, preedit will not be
> > displayed on a suitable position.
> 
> The focus widget is the one you operate on. For over the spot input methods 
> you can use the focus widgets position and 
> focusWidget()->inputMethodQuery(Qt::ImMicroFocus) to determine the 
> information you need to position your input widget.
> 
> The holderWidget was only needed in the old code because you had one input 
> context per top level.

Since XIC was created for every focus widget, I saw that the preedit of XIM 
is displayed correctly, even if it was not an on-the-spot style.

And, other input method will need only focusWidget(), so I conclude that 
this implementation is good.


-- 
Daisuke Kameda <kaminmat at cc.rim.or.jp>





More information about the immodule-qt mailing list