Hello everyone,
I would like to interact with a vtkRenderer to pick object when I am hovering an object. Unfortunately onMouseMove (from vtkInteractorStyle) works only when a real click happens. Is there a way to have mouse hover coordinates in renderer with vtk (vtkInteractorStyle)?
I already implemented my own picker. To give you a bit more context, I am using vtkr inside a Qt QML software, and I just want to get mouse coordinates for hovering event with vtk, maybe with onMouseMove (vtkInteractorStyle). But for now onMouseMove need a click to work.
Make sure to call setMouseTracking(true) on the Qt widget that contains your viewport. Also, if you are calling setViewport() on the widget, make sure to call setMouseTracking()after that.
Unfortunalety I am on a Qt quick project so I don’t have setMouseTracking(true) available for qt quick item. I tried setAcceptHoverEvents(true); setAcceptedMouseButtons(Qt::AllButtons); setFlag(ItemAcceptsInputMethod, true);
but without success.