QAccessiblePlugin 类

The QAccessiblePlugin class provides an abstract base for accessibility plugins. 更多...

头: #include <QAccessiblePlugin>
继承: QObject and QAccessible

公共函数

QAccessiblePlugin (QObject * parent = 0)
~QAccessiblePlugin ()

重实现公共函数

virtual QAccessibleInterface * create (const QString & key , QObject * object ) = 0
virtual QStringList keys () const = 0

额外继承成员

详细描述

The QAccessiblePlugin class provides an abstract base for accessibility plugins.

Writing an accessibility plugin is achieved by subclassing this base class, reimplementing the pure virtual functions keys () 和 create (),和导出类采用 Q_EXPORT_PLUGIN2 () 宏。

另请参阅 QAccessibleBridgePlugin and 如何创建 Qt 插件 .

成员函数文档编制

QAccessiblePlugin:: QAccessiblePlugin ( QObject * parent = 0)

构造可访问性插件采用给定 parent . This is invoked automatically by the Q_EXPORT_PLUGIN2 () 宏。

QAccessiblePlugin:: ~QAccessiblePlugin ()

销毁可访问性插件。

从不需要明确调用这。Qt 自动销毁插件当不再使用时。

[pure virtual] QAccessibleInterface * QAccessiblePlugin:: create (const QString & key , QObject * object )

创建并返回 QAccessibleInterface 实现为类 key 和对象 object 。键区分大小写。

另请参阅 keys ().

[pure virtual] QStringList QAccessiblePlugin:: keys () const

Returns the list of keys this plugin supports.

These keys must be the class names that this plugin provides an accessibility implementation for.

另请参阅 create ().