Nesta página

QAccessiblePlugin Class

A classe QAccessiblePlugin fornece uma classe base abstrata para plug-ins que fornecem informações de acessibilidade para elementos da interface do usuário. Mais...

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

Funções públicas

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

Descrição detalhada

A criação de um plug-in de acessibilidade é feita por meio da subclassificação desta classe base, reimplementando a função virtual pura create() e exportando a classe com a macro Q_PLUGIN_METADATA().

Veja também Como criar plug-ins Qt.

Documentação das funções-membro

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

Cria um plug-in de acessibilidade com o parent fornecido. Ele é chamado automaticamente pelo carregador de plug-ins.

[virtual noexcept] QAccessiblePlugin::~QAccessiblePlugin()

Destrói o plug-in de acessibilidade.

Você nunca precisa chamar isso explicitamente. O Qt destrói um plug-in automaticamente quando ele não é mais utilizado.

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

Cria e retorna uma implementação de ` QAccessibleInterface ` para a classe ` key ` e o objeto ` object`. As chaves diferenciam maiúsculas de 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.