QKbdDriverFactory Class

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

头: #include <QKbdDriverFactory>

静态公共成员

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

详细描述

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

注意,此类只可用于 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 () 函数返回 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 () 函数。

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 文档编制了解细节。

另请参阅 QWSKeyboardHandler and QKbdDriverPlugin .

成员函数文档编制

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

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

Note that the keys are case-insensitive.

另请参阅 keys ().

[static] QStringList QKbdDriverFactory:: keys ()

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

另请参阅 create ().