QAccessibleObject Class
QAccessibleObject 类实现了 QObjectsQAccessibleInterface 的部分功能。更多
| 头文件: | #include <QAccessibleObject> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 继承: | QAccessibleInterface |
| 继承于: |
- 所有成员(包括继承成员)的列表
- QAccessibleObject 是辅助功能类的一部分。
公共函数
| QAccessibleObject(QObject *object) |
重新实现的公共函数
| virtual QAccessibleInterface * | childAt(int x, int y) const override |
| virtual bool | isValid() const override |
| virtual QObject * | object() const override |
| virtual QRect | rect() const override |
| virtual void | setText(QAccessible::Text t, const QString &text) override |
受保护函数
| virtual | ~QAccessibleObject() |
另请参阅 QAccessible 和QAccessibleWidget 。
成员函数文档
[explicit] QAccessibleObject::QAccessibleObject(QObject *object)
为object 创建一个 QAccessibleObject。
[virtual noexcept protected] QAccessibleObject::~QAccessibleObject()
只有调用 release() 将内部引用计数器递减为零时,才会发生这种情况。
[override virtual] QAccessibleInterface *QAccessibleObject::childAt(int x, int y) const
重实现:QAccessibleInterface::childAt(int x, int y) const.
[override virtual] bool QAccessibleObject::isValid() const
重实现:QAccessibleInterface::isValid() const.
[override virtual] QObject *QAccessibleObject::object() const
重实现:QAccessibleInterface::object() const.
[override virtual] QRect QAccessibleObject::rect() const
重实现:QAccessibleInterface::rect() const.
[override virtual] void QAccessibleObject::setText(QAccessible::Text t, const QString &text)
重实现:QAccessibleInterface::setText(QAccessible::Text t, const QString &text).
© 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.