I am using VTK render window inside a QML item (i.e. in a QtQuick application).
Rendering is working fine for the ImplicitPlaneWidget2 as well as mouse interaction like mouse wheel, camera rotate etc. But I can’t enable the interaction with the plane and the orientation handle. It appears that I need to use the QVTKInteractorAdapter class (https://vtk.org/doc/nightly/html/classQVTKInteractorAdapter.html) to connect QtEvent (generated from QML item) with the VTK interactor. But, I am not sure if/how should I do that.
Is there any other way to allow the QML based application to do that?
I appreciate if you could help with a code snippet.
For the ImplitcitPlaneWidget2, camera rotation is working fine but I am not able to select the plane and change its orientation.
How do I enable all default interaction for this widget as it resides inside the QML item?
The fact that the 3D Widget is irresponsive certainly has to do with interactors. I don’t have any experience myself with interactors in QML, but I suppose that mouse/gesture events are not finding their way from QML to the Interactor in VTK. VTK is not aware of QML, so you have to do some tweak on your part.