QML accessability issue.
Unsolved
QML and Qt Quick
-
I'm trying to change the accessibility message without changing the focus.
TextEdit { id: searchText text: "yellow" anchors.centerIn: parent focus: true Accessible.role: Accessible.StaticText; Accessible.name: searchText.text; Keys.onPressed: (event) => { if (event.key === Qt.Key_Down){ Accessible.description = "red"; console.log("down clicked"); } if (event.key === Qt.Key_Up){ Accessible.description = "blue"; console.log("up clicked"); } } }
in QT Widget this works.
auto *ev = new QAccessibleValueChangeEvent(focusedWidget, "New Message"); QAccessible::updateAccessibility(ev);
I am looking for a QML solution