-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NVDA Repeats Previous Line Instead of speeking "Blank" for Empty Lines in PyQt6 applications for QTextEdit and QPlainTextEdit widgets #17419
Comments
I managed to close the issue by accident... re opened all good. |
@snufas I think that is an issue with QT, and not NVDA. All other screen readers I have tested has that same problem. What is wrong with wx? To my knolage, wx is the most accessible python GUI library out there |
Right, just to confirm, #9376 affects only apps using Java Access Bridge as the accessibility protocol, but from logs in the description I assume Qt uses UI Automation. So, while this is a separate issue, the cause may be very similar and related to the way Qt reports line bounds or how the |
@Emil-18 It probably is QT issue, However, that needs to be confirmed by developers themselves. I can't report it because I don't know what exactly is the problem. acording to chatgpt: Better API Framework:
In summary, while MSAA laid the groundwork for accessibility on Windows, UI Automation is the better choice for new applications due to its enhanced capabilities and support for modern UI elements. |
Alright, there is weird issue going on with me opening and closing the issue. There is some shortcut probably that I don't know. So, I'm gonna be very careful from now on. in providing the comments... |
I am trying to use pyQT6 and I'm testing out variety of widgets available and how accessible they are.
there is a problem how NVDA is reading. multi line text from
QTextEdit and QPlainTextEdit widgets in PyQt6 applications.
Steps to reproduce:
You can download the demo application source code that I made for demo purposes to properly investigate The problem.
text_viewer.txt
is a Python file just rename it. But I will illustrate the example anyways.
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 2
it would be read like so
This is line 1
This is line 1
And this this line 2
Expected behavior:
it should be read like so:
This is line 1
" blank" spoken tekst for the new line
And this this line 2
Related Logs
System configuration
NVDA version:
2024.4 (NVDA is installed.)
Windows version:
10.0.19045 N/A Build 19045
Name and version of other software in use when reproducing the issue:
python 3.9
PyQt66.7.1 (the latest version as of this issue date.)
Other information about your system:
Microsoft Windows 10 Pro
Other questions
Does the issue still occur after restarting your computer?
Yesd
Have you tried any other versions of NVDA? If so, please report their behaviors.
No
If NVDA add-ons are disabled, is your problem still occurring?
Yes
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
Yes
My thoughts and comments
I'm not entirely sure if the problem lies with NVDA or the library itself. Other UI elements, like toolbars, buttons, and edit boxes, work fine.
Jaws has exactly the same behavior. That suggests it might be a problem with the library.
Nonetheless, NVDA needs to function properly with this widely used and important library.
As a side note, the Python WX library isn't great. I believe this issue needs attention because UI libraries are crucial for accessibility. This shouldn't be overlooked, as Python QT is a major library that requires full support.
I don't have the expertise to investigate this properly, but I'm hoping the developers do. Please include this issue in the milestones so I know it's a work in progress.
Thanks for grate work!!!
The text was updated successfully, but these errors were encountered: