<div dir="ltr"><div><div><div><div><div>Hi All,<br><br>I have taken <span class="str-truncated">
<a href="https://gitlab.kitware.com/alextsui05/vtk/blob/04485e81d6a31740a572f5ee8351289db0952f09/Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py">QVTKRenderWindowInteractor.py</a> 
for PyQt5 from </span><br><a href="https://gitlab.kitware.com/alextsui05/vtk/tree/04485e81d6a31740a572f5ee8351289db0952f09/Wrapping/Python/vtk/qt5">https://gitlab.kitware.com/alextsui05/vtk/tree/04485e81d6a31740a572f5ee8351289db0952f09/Wrapping/Python/vtk/qt5</a> <br><br></div>When I run a sample program. I get the following error.<br>======================<br>Traceback (most recent call last):<br>  File "/usr/local/lib/python2.7/site-packages/vtk/qt5/QVTKRenderWindowInteractor.py", line 369, in wheelEvent<br>    if ev.delta() >= 0:<br>AttributeError: 'QWheelEvent' object has no attribute 'delta'<br>Aborted (core dumped)<br>===========================<br><br></div>From <a href="http://doc.qt.io/qt-5/qwheelevent-obsolete.html">http://doc.qt.io/qt-5/qwheelevent-obsolete.html</a> , it can be seen that <b><a href="http://doc.qt.io/qt-5/qwheelevent-obsolete.html#delta">delta</a></b>() function of QWheelEvent is obsolete.<br></div>I am using QT 5.2.1.<br><br></div>Could anyone help me on this.<br><br></div>Is there is any other "<span class="str-truncated">QVTKRenderWindowInteractor.py" program or patch for the existing one is available.<br></span><div><div><div><div><br clear="all"><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#ff0000"> </font><font color="#ff6600">Thanks and Regards,</font></div><div><font color="#3366ff"><br></font></div><div><span style="color:rgb(51,102,255)"> Manjunath K E</span><font color="#3366ff"></font></div><div><font color="#3366ff"><span style="color:rgb(241,194,50)"> Help Ever Hurt Never</span><br></font></div><div><font color="#3366ff">  </font></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div>