QInputContextFactory

Inheritance diagram of QInputContextFactory

Synopsis

Static functions

Detailed Description

The PySide.QtGui.QInputContextFactory class creates PySide.QtGui.QInputContext objects.

The input context factory creates a PySide.QtGui.QInputContext object for a given key with QInputContextFactory.create() .

The input contexts are either built-in or dynamically loaded from an input context plugin (see QInputContextPlugin ).

PySide.QtGui.QInputContextFactory.keys() returns a list of valid keys. The keys are the names used, for example, to identify and specify input methods for the input method switching mechanism. The names have to be consistent with QInputContext.identifierName() , and may only contain ASCII characters.

A key can be used to retrieve the associated input context’s supported languages using PySide.QtGui.QInputContextFactory.languages() . You can retrieve the input context’s description using PySide.QtGui.QInputContextFactory.description() and finally you can get a user friendly internationalized name of the PySide.QtGui.QInputContext object specified by the key using PySide.QtGui.QInputContextFactory.displayName() .

Copyright (C) 2003-2004 immodule for Qt Project. All rights reserved.



This file is written to contribute to Nokia Corporation and/or its subsidiary(-ies) under their own license. You may use this file under your Qt license. Following description is copied from their original file headers. Contact immodule-qt@freedesktop.org if any conditions of this licensing are not clear to you.

See also

PySide.QtGui.QInputContext QInputContextPlugin

class PySide.QtGui.QInputContextFactory
static PySide.QtGui.QInputContextFactory.create(key, parent)
Parameters:
Return type:

PySide.QtGui.QInputContext

Creates and returns a PySide.QtGui.QInputContext object for the input context specified by key with the given parent . Keys are case sensitive.

static PySide.QtGui.QInputContextFactory.description(key)
Parameters:key – unicode
Return type:unicode

Returns an internationalized brief description of the PySide.QtGui.QInputContext object specified by key . You can, for example, use this description in a user interface.

static PySide.QtGui.QInputContextFactory.displayName(key)
Parameters:key – unicode
Return type:unicode

Returns a user friendly internationalized name of the PySide.QtGui.QInputContext object specified by key . You can, for example, use this name in a menu.

static PySide.QtGui.QInputContextFactory.keys()
Return type:list of strings

Returns the list of keys this factory can create input contexts for.

The keys are the names used, for example, to identify and specify input methods for the input method switching mechanism. The names have to be consistent with QInputContext.identifierName() , and may only contain ASCII characters.

static PySide.QtGui.QInputContextFactory.languages(key)
Parameters:key – unicode
Return type:list of strings

Returns the languages supported by the PySide.QtGui.QInputContext object specified by key .

The languages are expressed as language code (e.g. “zh_CN”, “zh_TW”, “zh_HK”, “ja”, “ko”, ...). An input context that supports multiple languages can return all supported languages as a PySide.QtCore.QStringList . The name has to be consistent with QInputContext.language() .

This information may be used to optimize a user interface.