QVTKOpenGLWidget does not stop interaction in leaveEvent()
Tested with vtkInteractorStyleTrackballCamera. After QVTKOpenGLWidget is displayed:
- Push the left mouse button over renderer window..
- Drag the mouse out of the view, do not release it
- Click and release right mouse button (or middle button, any button which was not grabbed). Release left mouse button.
- In this state you can move mouse back to view. View will behave like left mouse button is clicked.
Sub-classing QVTKOpenGLWidget and overriding leaveEvent by adding
// this seems does not do anything, why?
interactorStyle()->OnLeave();
// fixes the problem, but this is not a solution.
interactorStyle()->OnLeftButtonUp();
interactorStyle()->OnMiddleButtonUp();
interactorStyle()->OnRightButtonUp();
interactorStyle()->OnFourthButtonUp();
interactorStyle()->OnFifthButtonUp();
I believe QVTKWidget did not have this problem
Edited by Mathieu Westphal (Kitware)