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 ().