-
-
Notifications
You must be signed in to change notification settings - Fork 639
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... |
@snufas - No please report this to the QT developers. You have a much better understanding of the problem as a reporter than we do. |
As I mentioned, I'm not fully familiar with the NVDA internals My knowledge of UIA accessibility is quite limited. I'm sure the developers at NV Access know more than I do, so they need to talk to each other and share the insights needed to fix the issue. I would definitely report it if I knew exactly what was wrong. However, I can confirm that NVDA doesn't work correctly with QT applications. For example, while Narrator can always focus on QT windows and widgets, NVDA cannot. Additionally, NVDA reads a message box more than once, while Narrator reads it only once. This shows that NVDA is doing something wrong, so we can't blame QT alone. NVDA isn't handling something correctly, unlike Narrator. @seanbudd, @CyrilleB79 I see you contributing, which is great. Can you do more deep investigations? I can give you few basic pyQT applications to play with if you want. |
Pardon me but I'm keep pressing Alt plus enter which is closing the issue GitHub shortcuts I forget about these... As I mentioned, I'm not fully familiar with the NVDA internals My knowledge of UIA accessibility is quite limited. I'm sure the developers at NV Access know more than I do, so they need to talk to each other and share the insights needed to fix the issue. I would definitely report it if I knew exactly what was wrong. However, I can confirm that NVDA doesn't work correctly with QT applications. For example, while Narrator can always focus on QT windows and widgets, NVDA cannot. I mean it does focus on the UI elements but not reliably. Additionally, NVDA reads a message box more than once, while Narrator reads it only once. This shows that NVDA is doing something wrong, so we can't blame QT alone. NVDA isn't handling something correctly, unlike Narrator. @seanbudd, @CyrilleB79 I see you contributing, which is great. Can you do more deep investigations? I can give you few basic pyQT applications to play with if you want. |
@snufas you do not need to know NVDA internals, nor to know the root cause of the issue. What you have to report to QT is something like this:
Do not forget to mention that it also happens with others screen readers. |
@CyrilleB79 I get your point. I reported Variety of accessibility issues many times before. So I am aware how to do it well, Thank you for pointing things out. Alright then, I will report the issue to QT, However, in other situations clearly it's the fault of NVDA. Ideally, all the existing QT bugs needs to be investigated from the NVDA-S perspective as well... I can't give out tu much because, I'm not contributing it yet. But that's why I create issues for someone who does contribute and can do a better job than I can do in terms of reporting and investigating. it is easy to blame QT, not NVDA but the fact is that narrator in some situations behaves correctly where NVDA in jaws does not, so what does it tell you??? I leave the issue open for now, please don't close it. If I get any updates from the forum, I will paste them here. And if the issue gets resolved, I will close that issue myself. So we don't have the situation where some issues are not even existing anymore and they are still open. Or other way around. |
@seanbudd, @CyrilleB79, @Adriani90 |
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: