QAccessibleObject Class
QAccessibleObject 类为 QObject 实现了《QAccessibleInterface 》规范的部分内容。更多内容...
| 头文件: | #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.