[vtkusers] Pyqt5 : AttributeError: 'QWheelEvent' object has no attribute 'delta' (VTK 6.3.rc1, qt 5.2.1)

Manjunath K E ke.manjunath at gmail.com
Thu Aug 13 03:45:03 EDT 2015


Hi All,

I have taken QVTKRenderWindowInteractor.py
<https://gitlab.kitware.com/alextsui05/vtk/blob/04485e81d6a31740a572f5ee8351289db0952f09/Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py>
for PyQt5 from
https://gitlab.kitware.com/alextsui05/vtk/tree/04485e81d6a31740a572f5ee8351289db0952f09/Wrapping/Python/vtk/qt5

When I run a sample program. I get the following error.
======================
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/site-packages/vtk/qt5/QVTKRenderWindowInteractor.py",
line 369, in wheelEvent
    if ev.delta() >= 0:
AttributeError: 'QWheelEvent' object has no attribute 'delta'
Aborted (core dumped)
===========================

>From http://doc.qt.io/qt-5/qwheelevent-obsolete.html , it can be seen
that *delta
<http://doc.qt.io/qt-5/qwheelevent-obsolete.html#delta>*() function of
QWheelEvent is obsolete.
I am using QT 5.2.1.

Could anyone help me on this.

Is there is any other "QVTKRenderWindowInteractor.py" program or patch for
the existing one is available.

 Thanks and Regards,

 Manjunath K E
 Help Ever Hurt Never
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150813/74ee90ba/attachment.html>


More information about the vtkusers mailing list