En esta página

QAccessiblePlugin Class

La clase QAccessiblePlugin proporciona una clase base abstracta para plugins que proporcionan información de accesibilidad para los elementos de la interfaz de usuario. Más...

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

Funciones Públicas

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

Descripción detallada

Escribir un plugin de accesibilidad se consigue subclasificando esta clase base, reimplementando la función virtual pura create(), y exportando la clase con la macro Q_PLUGIN_METADATA().

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

Documentación de funciones miembro

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

Crea un complemento de accesibilidad con la dirección parent. El cargador de complementos lo invoca automáticamente.

[virtual noexcept] QAccessiblePlugin::~QAccessiblePlugin()

Destruye el complemento de accesibilidad.

No es necesario llamarlo explícitamente. 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.