-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
BUG: QTest Press/Click not Working #428
Comments
Reviewing:
and the available it is evident that
All of the above (plus the referenced SO post by pyqtgraph) give me strong reason to suggest:
|
adam-grant-hendry
pushed a commit
to adam-grant-hendry/pytest-qt
that referenced
this issue
Jun 6, 2022
`QTest` mouse actions `mouseClick` and `mousePress` do not release the mouse, causing `qtbot` to fail tests. Replace with `QtGui` mouse events. Fixes Issue pytest-dev#428
adam-grant-hendry
pushed a commit
to adam-grant-hendry/pytest-qt
that referenced
this issue
Jun 6, 2022
`QTest` mouse actions `mouseClick` and `mousePress` do not release the mouse, causing `qtbot` to fail tests. Replace with `QtGui` mouse events. Fixes Issue pytest-dev#428
adam-grant-hendry
pushed a commit
to adam-grant-hendry/pytest-qt
that referenced
this issue
Jun 6, 2022
`QTest` mouse actions `mouseClick` and `mousePress` do not release the mouse, causing `qtbot` to fail tests. Replace with `QtGui` mouse events. Fixes Issue pytest-dev#428
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referencing this SO issue, I am experiencing the same problem, even with
setMouseTracking
enabled (inwindows
mode, notheadless
). It appears as ifmousePress
andmouseClick
don't properly release mouse buttons.MRE
To get hovering to function, I am forced to use
mousePress
after moves when I shouldn't have to.Solution
pyqtgraph
has implemented a solution that works: write custom mouse movement methods instead of wrappingQTest
:The text was updated successfully, but these errors were encountered: