The QMouseDriverFactory class creates mouse drivers in Qt for Embedded Linux. 更多...
| 头: | #include <QMouseDriverFactory> |
| QWSMouseHandler * | create (const QString & key , const QString & device ) |
| QStringList | keys () |
The QMouseDriverFactory class creates mouse drivers in Qt for Embedded Linux.
注意,此类只可用于 Qt for Embedded Linux .
QMouseDriverFactory is used to detect and instantiate the available mouse drivers, allowing Qt for Embedded Linux to load the preferred driver into the server application at runtime. The create () 函数返回 QWSMouseHandler object representing the mouse 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 mouse drivers. In addition, custom mouse drivers can be added using Qt's plugin mechanism, i.e. by subclassing the QWSMouseHandler class and creating a mouse driver plugin ( QMouseDriverPlugin ). See the pointer handling 文档编制了解细节。
另请参阅 QWSMouseHandler and QMouseDriverPlugin .
[static]
QWSMouseHandler
* QMouseDriverFactory::
create
(const
QString
&
key
, const
QString
&
device
)
Creates the mouse driver specified by the given key , using the display specified by the given device .
Note that the keys are case-insensitive.
另请参阅 keys ().
[static]
QStringList
QMouseDriverFactory::
keys
()
Returns the list of valid keys, i.e. the available mouse drivers.
另请参阅 create ().