QAccessiblePlugin Class

QAccessiblePlugin 클래스는 사용자 인터페이스 요소에 대한 접근성 정보를 제공하는 플러그인을 위한 추상 베이스 클래스를 제공합니다. 더 보기...

Header: #include <QAccessiblePlugin>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
상속합니다: QObject

공용 함수

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

자세한 설명

접근성 플러그인을 작성하려면 이 베이스 클래스를 서브클래싱하고 순수 가상 함수 create()를 다시 구현한 다음 Q_PLUGIN_METADATA() 매크로를 사용하여 클래스를 내보내면 됩니다.

Qt 플러그인 생성 방법도참조하십시오 .

멤버 함수 문서

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

주어진 parent 으로 접근성 플러그인을 구축합니다. 플러그인 로더에 의해 자동으로 호출됩니다.

[virtual noexcept] QAccessiblePlugin::~QAccessiblePlugin()

접근성 플러그인을 삭제합니다.

이 함수를 명시적으로 호출할 필요는 없습니다. 플러그인이 더 이상 사용되지 않으면 Qt는 자동으로 삭제합니다.

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

key 클래스와 object 객체에 대한 QAccessibleInterface 구현을 생성하고 반환합니다. 키는 대소문자를 구분합니다.

© 2025 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.