convert QPointF to QPoint before calling mapToScene()#2870
convert QPointF to QPoint before calling mapToScene()#2870j9ac9k merged 1 commit intopyqtgraph:masterfrom
Conversation
|
Hmm, this issue would have been present since 13d652c as part of the effort to support Qt6, which favors the use of QPointF for mouse coordinates. This can only be triggered by pyqtgraph/pyqtgraph/widgets/GraphicsView.py Lines 29 to 30 in cdb177c |
|
So probably the only example to instantiate a If I |
Would the fix there be in GradientEditor or should we look for a different mapping method that can use floating point precision? |
|
I rather suspect that enabling mouse for GraphicsView had never worked with the rest of the library. |
yeah, I was thinking that too; anyway this PR LGTM, merging. Thanks @sevas ! |
On macOS with PySide6, the following exception is raised when moving the mouse in a
GraphicsViewwidget:One simple workaround is converting the QPointF() to a QPoint() (as this MR does), but I do not know if this is the appropriate fix. I'm happy to check to provide another fix if this is not the correct way and someone points me to the right direction.
I have searched existing issues and MRs and I did not find a similar ticket, but I may have missed it.
Here is my environment info:
Fixes #
Other Tasks
Bump Dependency Versions
Files that need updates
Confirm the following files have been either updated or there has been a determination that no update is needed.
README.mdsetup.pytox.ini.github/workflows/main.ymland associatedrequirements.txtand condaenvironemt.ymlfilespyproject.tomlbinder/requirements.txtPre-Release Checklist
Pre Release Checklist
__init__.pyCHANGELOGprimarily using contents from automated changelog generation in GitHub release pagePost-Release Checklist
Steps To Complete
.dev0to__version__in__init__.py