[vtk-developers] QVTKInteractorAdapter and QWheelEvent

Arnaud Gelas arnaudgelas at gmail.com
Thu Apr 30 10:47:46 EDT 2015


Hi all,

Please, correct me if I am mistaken!

In one QVTKWidget, when user use the mouse wheel. For each QWheelEvent,
there is one vtkMouseWheel * Event (forward/backward) [1].

The problem is that Qt is sending less QWheelEvent than expected by vtk.
Indeed QWheelEvent::delta returns the distance that the wheel is rotated
[2], and so less QWheelEvent are sent.

So in applications, when changing image slices (with large data sets), it
requires lots of mouse wheel to go from one side to the other one.

Am I correct? If so, to your opinion what would be the best way to address
this issue?

Thanks!

Best regards,
Arnaud


[1]
https://github.com/Kitware/VTK/blob/master/GUISupport/Qt/QVTKInteractorAdapter.cxx#L258-L277

[2] http://doc.qt.io/qt-4.8/qwheelevent.html#delta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150430/290dd717/attachment-0001.html>


More information about the vtk-developers mailing list