class QAccessibleAttributesInterface

The QAccessibleAttributesInterface class implements support for reporting attributes for an accessible object. More

Added in version 6.8.

Synopsis

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

Attributes are key-value pairs. Values are stored in QVariant.

The Attribute enumeration describes the available keys and documents which type to use for the value of each key.

While the text-specific attributes handled by attributes are specific to objects implementing text and are specific to a specific text position/offset, the attributes handled by the QAccessibleAttributesInterface can be used for objects of any role and apply for the whole object.

Classes already implementing QAccessibleTextInterface for text-specific attrtibutes may want to implement QAccessibleAttributesInterface in addition for object-specific attributes.

abstract attributeKeys()
Return type:

.list of QAccessible.Attribute

Returns the keys of all attributes the object supports. The Attribute enumeration describes available keys.

abstract attributeValue(key)
Parameters:

keyAttribute

Return type:

object

Returns the value of the attribute key of this object.

If the attribute is set for this object, a value of the type documented for the given key in the documentation of the Attribute enumeration is returned in the QVariant.

Otherwise, an invalid QVariant is returned.