QAccessiblePlugin 類

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 插件 .

成員函數文檔編製

QAccessiblePlugin:: QAccessiblePlugin ( QObject * parent = Q_NULLPTR)

構造可訪問性插件采用給定 parent 。這被插件加載程序自動援引。

QAccessiblePlugin:: ~QAccessiblePlugin ()

銷毀可訪問性插件。

從不需要明確調用這。Qt 自動銷毀插件當不再使用時。

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

創建並返迴 QAccessibleInterface 實現為類 key 和對象 object 。鍵區分大小寫。