Qt API | Qtopia API | Qtopia Documentation | ![]() |
The InputMethodInterface class provides an interface for Qtopia input methods. More...
#include <qtopia/inputmethodinterface.h>
Input methods must supply a QWidget that will be shown above the task bar and emit a signal when a key is pressed:
Input methods may be added to Qtopia via plugins. In order to write an input method plugin you must create an interface to your input method by deriving from the InputMethodInterface class and implementing the pure virtual functions.
See also: Input Method Tutorial
The icon() function returns the icon for the input method. This will be displayed in the taskbar when the input method is selected.
The inputMethod() function creates the input method widget (if not already created) and returns the input method widget.
parent is the parent of the input method widget. f contains the flags to pass to the input method widget.
This widget will be display just above the task bar when the user needs to input text. You should always return the same widget if this function is called multiple times.
The name() function returns the name of the input method. This will be displayed in the popup list of available input methods.
The onKeyPress() function must connect the supplied slot to the signal that is emitted when a key press is generated.
receiver and slot specify the slot to connect to.
The resetState() function should return the input method to its default state.
This file is part of the Qtopia , copyright © 1995-2002 Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks | Qtopia version 1.7.0
|