The QAccessibleBridge class is the base class for accessibility back-ends. 更多...
| 头: | #include <QAccessibleBridge> |
| virtual | ~QAccessibleBridge () |
| virtual void | notifyAccessibilityUpdate (int reason , QAccessibleInterface * interface , int child ) = 0 |
| virtual void | setRootObject (QAccessibleInterface * object ) = 0 |
The QAccessibleBridge class is the base class for accessibility back-ends.
Qt supports Microsoft Active Accessibility (MSAA), Mac OS X Accessibility, and the Unix/X11 AT-SPI standard. By subclassing QAccessibleBridge , you can support other backends than the predefined ones.
Currently, custom bridges are only supported on Unix. We might add support for them on other platforms as well if there is enough demand.
另请参阅 QAccessible and QAccessibleBridgePlugin .
[虚拟]
QAccessibleBridge::
~QAccessibleBridge
()
Destroys the accessibility bridge object.
[pure virtual]
void
QAccessibleBridge::
notifyAccessibilityUpdate
(
int
reason
,
QAccessibleInterface
*
interface
,
int
child
)
This function is called by Qt to notify the bridge about a change in the accessibility information for object wrapped by the given interface .
reason specifies the cause of the change. It can take values of type QAccessible::Event .
child is the (1-based) index of the child element that has changed. When child is 0, the object itself has changed.
另请参阅 QAccessible::updateAccessibility ().
[pure virtual]
void
QAccessibleBridge::
setRootObject
(
QAccessibleInterface
*
object
)
This function is called by Qt at application startup to set the root accessible object of the application to object . All other accessible objects in the application can be reached by the client using object navigation.