Skip to content

AttributeError: 'QEvent' object has no attribute 'pos' #11607

Closed
@anntzer

Description

@anntzer

Since #9814, moving the mouse on a Qt4Agg window raises the exception

Traceback (most recent call last):
  File "/home/antony/src/extern/matplotlib/lib/matplotlib/backends/backend_qt5.py", line 294, in enterEvent
    x, y = self.mouseEventCoords(event.pos())
AttributeError: 'QEvent' object has no attribute 'pos'

(Qt5 instead uses a QEnterEvent here, which does have a pos()).

attn @lkjell

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: QtRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions