summaryrefslogtreecommitdiffstats
path: root/examples/pdfwidgets/pdfviewer/main.cpp
diff options
context:
space:
mode:
authorKaloyan Chehlarski <kaloyan.chehlarski@qt.io>2025-05-16 11:20:40 +0200
committerKaloyan Chehlarski <kaloyan.chehlarski@qt.io>2025-08-17 10:52:43 +0200
commit99af8b727ec6b5f0cd9584f02a50f9148853a3c0 (patch)
treeceb40fe2889c3b5c6fc87c2535c3f5cab74f8155 /examples/pdfwidgets/pdfviewer/main.cpp
parentae5d153c130c87ebe172728d0a2ab182a6ea780f (diff)
Fix accessibility for <p> tags with Windows Narrator6.8
QAccessible::Paragraph maps to a Text control on Windows, which causes Narrator to completely ignore its child nodes. Since even a simple <p>Content</p> generates two nodes, a nameless parent kParagraph and a named child kStaticText, the result is that Narrator will see a Text node with no name, and simply read "text". This change maps the kParagraph role to QAccessible::Grouping, which allows Narrator to see its child nodes and read their contents aloud. Fixes: QTBUG-134055 Change-Id: I96d4262bd4149f1dec50d47491263d0b022d4b83 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 245e1dacc930f52e8d6f09178e3942c33e785b10) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 265718fe80b5cf67f63d55a9328b9d12d4a1ebcd) (cherry picked from commit 96bafc4c768f01e6dff5f42d54127dac1cbd162a)
Diffstat (limited to 'examples/pdfwidgets/pdfviewer/main.cpp')
0 files changed, 0 insertions, 0 deletions