Screen Reader Accessibility Issue on Windows: Repeats Previous Line Instead of Announcing 'Blank' for Empty Lines in PyQt6 QTextEdit and QPlainTextEdit Widgets
-
Hello,
I am trying to use pyQT6 and I'm testing out variety of widgets available and how accessible they are for screen reader users.there is a problem how screenreaders on windows is reading. multi line text from
QTextEdit and QPlainTextEdit widgets in PyQt6 applications.Behavior.
The problem is basically this, rather than reading "blank" for the emty line, it reads a previous line instead.
for example:
This is line 1
And this this line 2it would be read like so
This is line 1
This is line 1
And this this line 2Expected behavior:
it should be read like so:
This is line 1
"blank" The spoken tekst for the new line
And this this line 2Extra info
I tested this with NVDA and Jaws screen reader on Windows, and the problem is exactly the same on both.
Python version: 3.9
pyQT bversion: PyQt66.7.1 (the latest version as of this post date.)
Same behavior persists in rich text view and plain text view
Same behavior exists whether the text editing is allowed or not.
I posted the issue on the NVDA github NVDA Repeats Previous Line Instead of Announcing "Blank" for Empty Lines in PyQt6 applications for QTextEdit and QPlainTextEdit widgets
and I've been told and I can confirm it's the issue with the Qt itself.
I hope you can have a look and investigate it, because this library is great and supports accessibility quite well. However, there are some quirks that need to be looked at. -
Hi and welcome to devnet,
Do you have the same issue with the latest PySide6 ?
-
yes, same behavior, just tested.
-
@dark_matter_io
So this is presumably a Qt6 issue rather than PyQt/PySide/Python. You can report at https://bugreports.qt.io/secure/Dashboard.jspa