Skip to content
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

QT5: An error occurs when moving the mouse over the edit box. #17695

Open
hwf1324 opened this issue Feb 13, 2025 · 2 comments
Open

QT5: An error occurs when moving the mouse over the edit box. #17695

hwf1324 opened this issue Feb 13, 2025 · 2 comments
Labels
component/qt Qt fraphical framework feature/mouse-tracking needs-technical-investigation A technical investigation is required to progress the issue. p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@hwf1324
Copy link
Contributor

hwf1324 commented Feb 13, 2025

Steps to reproduce:

  1. Create a virtual environment for Python and install PyQt5 using pip.
  2. Run the demo code.
  3. With mouse tracking turned on, move the mouse over the blank area in the edit box.

Demo Code:

import sys

from PyQt5.QtWidgets import (
    QApplication,
    QFormLayout,
    QLineEdit,
    QTextEdit,
    QPlainTextEdit,
    QWidget,
)

app = QApplication([])
window = QWidget()
window.setWindowTitle("Text Editor")

layout = QFormLayout()
layout.addRow("LineEdit:", QLineEdit())
layout.addRow("TextEdit:", QTextEdit())
layout.addRow("PlainTextEdit:", QPlainTextEdit())
window.setLayout(layout)

window.show()
sys.exit(app.exec())

Actual behavior:

Error in the log.

Expected behavior:

No errors.

NVDA logs, crash dumps and other attachments:

ERROR - eventHandler.executeEvent (19:51:39.831) - MainThread (6672):
error executing event: mouseMove on <NVDAObjects.Dynamic_EditableTextWithAutoSelectDetectionUIA object at 0x05D30330> with extra args of {'x': 1589, 'y': 1549}
Traceback (most recent call last):
  File "eventHandler.pyc", line 353, in executeEvent
  File "eventHandler.pyc", line 119, in __init__
  File "eventHandler.pyc", line 128, in next
  File "NVDAObjects\__init__.pyc", line 1293, in event_mouseMove
  File "api.pyc", line 275, in setReviewPosition
  File "NVDAObjects\UIA\__init__.pyc", line 1086, in copy
  File "NVDAObjects\UIA\__init__.pyc", line 527, in __init__
ValueError: Unknown position None

System configuration

NVDA installed/portable/running from source:

install

NVDA version:

alpha-35291,e2d464f5 (2025.1.0.35291)

Windows version:

Windows 11 24H2

Name and version of other software in use when reproducing the issue:

QT5

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

Yes

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

@SaschaCowley
Copy link
Member

@hwf1324 what is the user impact of this issue? That is, does NVDA fail to report what is under the mouse?

@SaschaCowley SaschaCowley added blocked/needs-info The issue can not be progressed until more information is provided. needs-technical-investigation A technical investigation is required to progress the issue. labels Feb 17, 2025
@hwf1324
Copy link
Contributor Author

hwf1324 commented Feb 17, 2025

what is the user impact of this issue?

When this error occurs, the review cursor will not follow the mouse

@gerald-hartig gerald-hartig added feature/mouse-tracking p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority component/qt Qt fraphical framework triaged Has been triaged, issue is waiting for implementation. and removed blocked/needs-info The issue can not be progressed until more information is provided. labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/qt Qt fraphical framework feature/mouse-tracking needs-technical-investigation A technical investigation is required to progress the issue. p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

3 participants