En esta página

QAccessiblePlugin Class

La clase `QAccessiblePlugin` proporciona una clase base abstracta para los complementos que ofrecen información de accesibilidad sobre los elementos de la interfaz de usuario. Más información...

Encabezado: #include <QAccessiblePlugin>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Heredado de: QObject

Funciones públicas

QAccessiblePlugin(QObject *parent = nullptr)
virtual ~QAccessiblePlugin()
virtual QAccessibleInterface *create(const QString &key, QObject *object) = 0

Descripción detallada

Para escribir un complemento de accesibilidad, hay que crear una subclase de esta clase base, reimplementar la función virtual pura ` create()` y exportar la clase con la macro ` Q_PLUGIN_METADATA()`.

Véase también Cómo crear complementos de Qt.

Documentación de las funciones miembro

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

Crea un complemento de accesibilidad con el parent proporcionado. El cargador de complementos lo invoca automáticamente.

[virtual noexcept] QAccessiblePlugin::~QAccessiblePlugin()

Elimina el complemento de accesibilidad.

No es necesario llamar a esta función de forma explícita. Qt destruye un complemento automáticamente cuando ya no se utiliza.

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

Crea y devuelve una implementación de ` QAccessibleInterface ` para la clase ` key ` y el objeto ` object`. Las claves distinguen entre mayúsculas y minúsculas.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.