QAccessibleBridgePlugin Class

The QAccessibleBridgePlugin class provides an abstract base for accessibility bridge plugins. \internal. More...

Header: #include <QAccessibleBridgePlugin>
Inherits: QObject

Public Functions

QAccessibleBridgePlugin(QObject *parent = nullptr)
virtual ~QAccessibleBridgePlugin()
virtual QAccessibleBridge *create(const QString &key) = 0

Detailed Description

\ingroupplugins \ingroup accessibility \inmodule QtWidgets

Writing an accessibility bridge plugin is achieved by subclassing this base class, reimplementing the pure virtual function create(), and exporting the class with the Q_PLUGIN_METADATA() macro.

See also QAccessibleBridge, QAccessiblePlugin, and How to Create Qt Plugins.

Member Function Documentation

[explicit] QAccessibleBridgePlugin::QAccessibleBridgePlugin(QObject *parent = nullptr)

Constructs an accessibility bridge plugin with the given parent. This is invoked automatically by the plugin loader.

[virtual noexcept] QAccessibleBridgePlugin::~QAccessibleBridgePlugin()

Destroys the accessibility bridge plugin.

You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.

[pure virtual] QAccessibleBridge *QAccessibleBridgePlugin::create(const QString &key)

Creates and returns the QAccessibleBridge object corresponding to the given key. Keys are case sensitive.

See also keys().