The QAccessibleBridgePlugin class provides an abstract base for accessibility bridge plugins. 更多...
| 头: | #include <QAccessibleBridgePlugin> |
| 继承: | QObject |
| QAccessibleBridgePlugin (QObject * parent = 0) | |
| ~QAccessibleBridgePlugin () |
| virtual QAccessibleBridge * | create (const QString & key ) = 0 |
| virtual QStringList | keys () const = 0 |
The QAccessibleBridgePlugin class provides an abstract base for accessibility bridge plugins.
Writing an accessibility bridge plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys () 和 create (),和导出类采用 Q_EXPORT_PLUGIN2 () 宏。
另请参阅 QAccessibleBridge , QAccessiblePlugin ,和 如何创建 Qt 插件 .
Constructs an accessibility bridge plugin with the given parent . This is invoked automatically by the Q_EXPORT_PLUGIN2 () 宏。
Destroys the accessibility bridge plugin.
从不需要明确调用这。Qt 自动销毁插件当不再使用时。
[pure virtual]
QAccessibleBridge
* QAccessibleBridgePlugin::
create
(const
QString
&
key
)
Creates and returns the QAccessibleBridge object corresponding to the given key 。键区分大小写。
另请参阅 keys ().
[pure virtual]
QStringList
QAccessibleBridgePlugin::
keys
() const
Returns the list of keys this plugins supports.
These keys must be the names of the bridges that this plugin provides.
另请参阅 create ().