Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QInputContext Class Reference

Inheritance diagram for QInputContext:


List of all members.

Detailed Description

The QInputContext class abstracts the input method dependent data and composing state.

An input method is responsible to input complex text that cannot be inputted via simple keymap. It converts a sequence of input events (typically key events) into a text string through the input method specific converting process. The class of the processes are widely ranging from simple finite state machine to complex text translator that pools a whole paragraph of a text with text editing capability to perform grammar and semantic analysis.

To abstract such different input method specific intermediate information, Qt offers the QInputContext as base class. The concept is well known as 'input context' in the input method domain. an input context is created for a text widget in response to a demand. It is ensured that an input context is prepared for an input method before input to a text widget.

Multiple input contexts that is belonging to a single input method may concurrently coexist. Suppose multi-window text editor. Each text widget of window A and B holds different QInputContext instance which contains different state information such as partially composed text.

Definition at line 60 of file qinputcontext.h.

Public Types

enum  StandardFormat { PreeditFormat, SelectionFormat }

Public Slots

void deleteLater ()


void destroyed (QObject *=0)

Public Member Functions

virtual QList< QAction * > actions ()
bool blockSignals (bool b)
const QObjectListchildren () const
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const QObject *receiver, const char *member=0)
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
virtual bool event (QEvent *)
virtual bool eventFilter (QObject *, QEvent *)
virtual bool filterEvent (const QEvent *event)
template<typename T>
findChild (const QString &name=QString()) const
template<typename T>
QList< T > findChildren (const QRegExp &re) const
template<typename T>
QList< T > findChildren (const QString &name=QString()) const
QWidgetfocusWidget () const
virtual QFont font () const
virtual QString identifierName ()=0
bool inherits (const char *classname) const
void installEventFilter (QObject *)
virtual bool isComposing () const =0
bool isWidgetType () const
void killTimer (int id)
virtual QString language ()=0
virtual void mouseHandler (int x, QMouseEvent *event)
void moveToThread (QThread *thread)
QString objectName () const
QObjectparent () const
QVariant property (const char *name) const
 QInputContext (QObject *parent=0)
void removeEventFilter (QObject *)
virtual void reset ()=0
void sendEvent (const QInputMethodEvent &event)
virtual void setFocusWidget (QWidget *w)
void setObjectName (const QString &name)
void setParent (QObject *)
bool setProperty (const char *name, const QVariant &value)
void setUserData (uint id, QObjectUserData *data)
bool signalsBlocked () const
QTextFormat standardFormat (StandardFormat s) const
int startTimer (int interval)
QThreadthread () const
virtual void update ()
QObjectUserData * userData (uint id) const
virtual void widgetDestroyed (QWidget *w)
virtual ~QInputContext ()

Static Public Member Functions

static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
static uint registerUserData ()

Protected Member Functions

virtual void childEvent (QChildEvent *)
virtual void connectNotify (const char *signal)
virtual void customEvent (QEvent *)
virtual void disconnectNotify (const char *signal)
int receivers (const char *signal) const
QObjectsender () const
virtual void timerEvent (QTimerEvent *)

Protected Attributes

QObjectData * d_ptr

Static Protected Attributes

static const QMetaObject staticQtMetaObject


QString objectName
 the name of this object

Private Member Functions

QInputContextoperator= (const QInputContext &)
 QInputContext (const QInputContext &)


class QApplication
class QApplicationPrivate
class QCoreApplication
class QCoreApplicationPrivate
class QInputContextFactory
struct QMetaObject
class QThreadData
class QWidget

Related Functions

(Note that these are not member functions.)

qFindChild (const QObject *obj, const QString &name=QString(), T dummy=0)
qFindChild (const QObject *obj, const QString &name)
QList< T > qFindChildren (const QObject *obj, const QString &name=QString(), T dummy=0)
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
QList< T > qFindChildren (const QObject *obj, const QString &name)
T * qobject_cast (QObject *object)
void * qt_find_obj_child (QObject *parent, const char *type, const QString &name)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index