diff options
| author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2025-09-10 20:19:40 +0200 |
|---|---|---|
| committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2025-10-13 10:44:24 +0200 |
| commit | 2512ffea91bbaec41d55eea2813a365edc3160a5 (patch) | |
| tree | 4a5ec9cd00ccf8ee135f8d1931c064432b792716 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | fb3d4480962d7929038c9add3405b35f36a936a9 (diff) | |
a11y: Send missing QAccessible::ObjectShow event for Qt Quick Controls
Before sending the QAccessibleEvent QAccessible::ObjectShow event from
QQuickItemPrivate::setEffectiveVisibleRecur() we checked if
QQuickItemPrivate::isAccessible was set. For e.g. Button, isAccessible
wasn't set by default: This was because isAccessible was only set as a
response to that an Accessible attached property was assigned to the
item.
Therefore, when a Button was shown it could end up not sending the
QAccessible::ObjectShow event.
This problem was first found on Button, but after more investigation, we
have found that the same problem applies to:
* BusyIndicator
* Button
* ComboBox
* Dial
* Label (without a text)
* ProgressBar
* RangeSlider
* RoundButton
* Slider
* TextArea
* TextField
The fix is to explicitly enable accessibility by calling
QQuickItemPrivate::setAccessible() on *all* Qt Quick Controls, since
they are all supposed to be accessible.
Change-Id: If4fa050149a31bf2baffa208716341d21631c042
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
0 files changed, 0 insertions, 0 deletions
