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 插件 .
構造可訪問性插件采用給定 parent . This is invoked automatically by the Q_EXPORT_PLUGIN2 () 宏。
銷毀可訪問性插件。
從不需要明確調用這。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 ().