AccessibleEnables accessibility of QML items More... Inherits QtObject Properties
Detailed DescriptionThis class is part of Accessibility for Qt Quick Applications. Items the user interacts with or that give information to the user need to expose their information in a semantic way. Then assistive tools can make use of that information to enable users to interact with the application in various ways. This enables Qt Quick applications to be used with screen-readers for example. The most important properties to set are name and role. See also Accessibility. Property DocumentationThis property sets an accessible description. Similar to the name it describes the item. The description can be a little more verbose and tell what the item does, for example the functionallity of the button it describes. This property sets an accessible name. For a button for example, this should have a binding to its text. In general this property should be set to a simple and concise but human readable name. Do not include the type of control you want to represent but just the name. This flags sets the semantic type of the widget. A button for example would have "Button" as type. The value must be one of QAccessible::Role . Example: Item { id: myButton Text { id: label // ... } Accessible.name: label.text Accessible.role: Accessible.Button function accessiblePressAction() { //... } } Some roles have special semantics. In order to implement check boxes for example a "checked" property is expected.
|