[MeeGo-touch-dev] How to use VKB in QT Applications?
jeremias.bosch at basyskom.de
Thu Jan 13 23:22:33 PST 2011
Am 14.01.2011 07:37, schrieb mohammad.anwari at nokia.com:
> You can set the QT_IM_MODULE environment variable with MInputContext
Basically - its not that simple. As you would still need to link
against MeegoTouch Library for that.
But yes it is possible to be used without meegotouch, as it is already
done by mozilla firefox mobile:
* opening the VKB:
* closing the VKB:
* responding to input method query
By using direct mode you will get real keyevents from the keyboard - but
be aware that this is not really supported and has bad sideeffects, duno
why its still around - actually.
Anyway newer patches for Firefox Mobile- which are not yet reviewed (see
bug https://bugzilla.mozilla.org/show_bug.cgi?id=609843) - will show you
how firefox mobile is using the "normal mode".
This is done by implementing 'inputMethodEvent' and by providing on
input method query '0'(normalmode) and not '1'(directmode).
Of course its not really the clean way, but not using the Namespace is
the only way of keeping the meegotouch dependency of of the qt application.
> Dari: meego-touch-dev-bounces at meego.com [meego-touch-dev-bounces at meego.com] atas nama ext danny [tornadory at 163.com]
> Terkirim: 14 Januari 2011 8:21
> Sampai: meego-touch-dev at meego.com
> Subjek: [MeeGo-touch-dev] How to use VKB in QT Applications?
> Hi all,
> How could make QT applications use the VKB provided by meego-im-uiserver?
> Is there some configurations such as GTK_IM_MODULE for gtk based applications? I try to set the QT_IM_MODULE but do not know what should be set.
> Or should I have to set the request in the source code? I see one way using such as "inputContext->filterEvent( QEvent::RequestSoftwareInputPanel);"
> And for the GTK based applications, I found that the applications all could use VKB directly even I set the GTK_IM_MODULE to null.
> Any one could make me clear for this? Thanks in advance.
> Best Regards,
> MeeGo-touch-dev mailing list
> MeeGo-touch-dev at meego.com
More information about the MeeGo-touch-dev