The QAccessiblePlugin class provides an abstract base class for plugins provinding accessibility information for user interface elements. 更多...
| 头: | #include <QAccessiblePlugin> |
| qmake: | QT += gui |
| 继承: | QObject |
| QAccessiblePlugin (QObject * parent = Q_NULLPTR) | |
| ~QAccessiblePlugin () | |
| virtual QAccessibleInterface * | create (const QString & key , QObject * object ) = 0 |
The QAccessiblePlugin class provides an abstract base class for plugins provinding accessibility information for user interface elements.
达成编写可访问性插件是通过子类化此基类,重实现纯虚函数 create (),和导出类采用 Q_PLUGIN_METADATA () 宏。
另请参阅 如何创建 Qt 插件 .
构造可访问性插件采用给定 parent 。这被插件加载程序自动援引。
销毁可访问性插件。
从不需要明确调用这。Qt 自动销毁插件当不再使用时。
[pure virtual]
QAccessibleInterface
*QAccessiblePlugin::
create
(const
QString
&
key
,
QObject
*
object
)
创建并返回 QAccessibleInterface 实现为类 key 和对象 object 。键区分大小写。