You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The import of QWheelEvent from QtGui was accidentally dropped with 502c3f0.
The current logic in __init__ implies this is also only needed for Qt4 (if is_qt4:...). However, 539aba1 also seems to break scrollwheel zooming for PySide2 (I'm running a modified version of 5.15.10 to support Python 3.11 with VTK 9.3.0.rc1 on Ubuntu 20.04).
We need the QWheelEvent import for the PySide2 case too and updated logic:
if is_qt4 or PyQtImpl == 'PySide2':
..
This addresses the zooming for PySide2 and I assume avoids the NameError with PySide and PyQt4.
The text was updated successfully, but these errors were encountered:
chrisgmorton
changed the title
QVTKRenderWindowInteractor.py _emit_wheel_event() will produce a name error QWheelEvent undefined.
QVTKRenderWindowInteractor.py _emit_wheel_event() will produce a NameError QWheelEvent undefined.
Sep 19, 2023
The import of QWheelEvent from QtGui was accidentally dropped with 502c3f0.
The current logic in
__init__
implies this is also only needed for Qt4 (if is_qt4:...
). However, 539aba1 also seems to break scrollwheel zooming for PySide2 (I'm running a modified version of 5.15.10 to support Python 3.11 with VTK 9.3.0.rc1 on Ubuntu 20.04).We need the QWheelEvent import for the PySide2 case too and updated logic:
This addresses the zooming for PySide2 and I assume avoids the NameError with PySide and PyQt4.
The text was updated successfully, but these errors were encountered: