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 ().