/*! \class QMouseDriverPlugin \ingroup plugins \ingroup qws \brief The QMouseDriverPlugin class is an abstract base class for mouse driver plugins in Qt for Embedded Linux. Note that this class is only available in \l{Qt for Embedded Linux}. \l{Qt for Embedded Linux} provides ready-made drivers for several mouse protocols, see the \l{Qt for Embedded Linux Pointer Handling}{pointer handling} documentation for details. Custom mouse drivers can be implemented by subclassing the QWSMouseHandler class and creating a mouse driver plugin. A mouse driver plugin can be created by subclassing QMouseDriverPlugin and reimplementing the pure virtual keys() and create() functions. By exporting the derived class using the Q_EXPORT_PLUGIN2() macro, The default implementation of the QMouseDriverFactory class will automatically detect the plugin and load the driver into the server application at run-time. See \l {How to Create Qt Plugins} for details. \sa QWSMouseHandler, QMouseDriverFactory */ /*! \fn QStringList QMouseDriverPlugin::keys() const Implement this function to return the list of valid keys, i.e. the mouse drivers supported by this plugin. \l{Qt for Embedded Linux} provides ready-made drivers for several mouse protocols, see the \l {Qt for Embedded Linux Pointer Handling}{pointer handling} documentation for details. \sa create() */ /*! Constructs a mouse driver plugin with the given \a parent. Note that this constructor is invoked automatically by the Q_EXPORT_PLUGIN2() macro, so there is no need for calling it explicitly. */
Qt插件系统的概要实例介绍
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://127.0.0.1/wyyxgx.html