PySide6.QtGui.QAccessibleAttributesInterface¶
- class QAccessibleAttributesInterface¶
- The - QAccessibleAttributesInterfaceclass implements support for reporting attributes for an accessible object. More…- Added in version 6.8. - Synopsis¶- Virtual methods¶- def - attributeKeys()
- def - attributeValue()
 - 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 - Attributeenumeration describes the available keys and documents which type to use for the value of each key.- While the text-specific attributes handled by - attributesare specific to objects implementing text and are specific to a specific text position/offset, the attributes handled by the- QAccessibleAttributesInterfacecan be used for objects of any role and apply for the whole object.- Classes already implementing - QAccessibleTextInterfacefor text-specific attrtibutes may want to implement- QAccessibleAttributesInterfacein addition for object-specific attributes.- abstract attributeKeys()¶
- Return type:
- .list of QAccessible.Attribute 
 
 - Returns the keys of all attributes the object supports. The - Attributeenumeration describes available keys.- Returns the value of the attribute - keyof 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 - Attributeenumeration is returned in the QVariant.- Otherwise, an invalid QVariant is returned.