How to use the ImplicitPlaneWidget2 inside QML?

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 ( 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.

Thanks for your help!

Hello, friend,

I suggest reading a bit about it here:

And taking a look at these repositories for working code:

kind regards,


Hi Paulo,
Many thanks!
Your suggestions were really helpful and I am able to display outline box and the implicitPlaneWidget2 on two QML items as you can see from the attached screenshot

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.

After some googling, I found these: (search for “Interactor” in the page)

I suggest starting from those. Also, if it’s the case, I suggest getting acquainted with VTK Interactors in pure C++ before, so you’ll understand their mechanics.