QAccessiblePlugin 类

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

额外继承成员

详细描述

QAccessiblePlugin class provides an abstract base class for plugins provinding accessibility information for user interface elements.

达成编写可访问性插件是通过子类化此基类,重实现纯虚函数 create (),和导出类采用 Q_PLUGIN_METADATA () 宏。

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

成员函数文档编制

QAccessiblePlugin:: QAccessiblePlugin ( QObject * parent = Q_NULLPTR)

构造可访问性插件采用给定 parent 。这被插件加载程序自动援引。

QAccessiblePlugin:: ~QAccessiblePlugin ()

销毁可访问性插件。

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

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

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