Developpez.com - Qt
X

Choisissez d'abord la catégorieensuite la rubrique :

Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QKbdDriverFactory Class Reference

The QKbdDriverFactory class creates keyboard drivers in Qt for Embedded Linux. More...

 #include <QKbdDriverFactory>

Static Public Members

QWSKeyboardHandler * create ( const QString & key, const QString & device )
QStringList keys ()

Detailed Description

The QKbdDriverFactory class creates keyboard drivers in Qt for Embedded Linux.

Note that this class is only available in Qt for Embedded Linux.

QKbdDriverFactory is used to detect and instantiate the available keyboard drivers, allowing Qt for Embedded Linux to load the preferred driver into the server application at runtime. The create() function returns a QWSKeyboardHandler object representing the keyboard driver identified by a given key. The valid keys (i.e. the supported drivers) can be retrieved using the keys() function.

Qt for Embedded Linux provides several built-in keyboard drivers. In addition, custom keyboard drivers can be added using Qt's plugin mechanism, i.e. by subclassing the QWSKeyboardHandler class and creating a keyboard driver plugin (QKbdDriverPlugin). See the character input documentation for details.

See also QWSKeyboardHandler and QKbdDriverPlugin.

Member Function Documentation

QWSKeyboardHandler * QKbdDriverFactory::create ( const QString & key, const QString & device ) [static]

Creates the keyboard driver specified by the given key, using the display specified by the given device.

Note that the keys are case-insensitive.

See also keys().

QStringList QKbdDriverFactory::keys () [static]

Returns the list of valid keys, i.e. the available keyboard drivers.

See also create().

Responsable bénévole de la rubrique Qt : Thibaut Cuvelier -