# VTK multi RenderWindow and RenderItem in QML

**URL:** <https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985>\
**Category:** Development\
**Created:** [March 16, 2023, 4:20am UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985 "2023-03-16T04:20:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveenkumar](https://discourse.vtk.org/user_avatar/discourse.vtk.org/praveenkumar/32/6753_2.png) [@praveenkumar](https://discourse.vtk.org/u/praveenkumar)\
**Post date:** [March 16, 2023, 4:20am UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985/1 "2023-03-16T04:20:00Z")

</div>

I’m Trying to display Multi Render item in QML.  
I created 2x2 grid layout with 4 rectangle and 4 Render window and Render Item, but it was displaying only one at a time.

 ![output](https://discourse.vtk.org/uploads/default/original/2X/9/99b2085ed5a93086a7e0afb7827d57003b8a2051.png)

If I try with 1 Render Window with 4 Render Items, it’s displaying the object (here I used sphere and cone as objects).

But I need individual Render window for each Render item to use different interactor.

OR

How do I add different interactors to individual Render Items?

---

<div class="post-metadata">

**Author:** ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)\
**Post date:** [March 16, 2023, 2:49pm UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985/2 "2023-03-16T14:49:29Z")

</div>

@John.Stone @lgivord

---

<div class="post-metadata">

**Author:** ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)\
**Post date:** [March 22, 2023, 10:29am UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985/3 "2023-03-22T10:29:45Z")

</div>

hello @praveenkumar,

Which VTK version do you use?

Recently, QML support for VTK has been greatly improved thanks to John Stone : [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9763](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9763)

Examples have been added [https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/GUI/QML](https://gitlab.kitware.com/vtk/vtk/-/tree/master/Examples/GUI/QML).

Based on `QtQuickBoxWidget`, with few changing in the .qml you can have several independent Window Render like that:

![image](https://discourse.vtk.org/uploads/default/original/2X/3/37356c53dd6f7662a88a1ebea79cd9030c97e35a.png)

Best,

Lucas

---

<div class="post-metadata">

**Author:** ![praveenkumar](https://discourse.vtk.org/user_avatar/discourse.vtk.org/praveenkumar/32/6753_2.png) [@praveenkumar](https://discourse.vtk.org/u/praveenkumar)\
**Post date:** [March 22, 2023, 10:58am UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985/4 "2023-03-22T10:58:07Z")

</div>

HI @lgivord,  
I’m using VTK 9.2

---

<div class="post-metadata">

**Author:** ![lgivord](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lgivord/32/3543_2.png) [@lgivord](https://discourse.vtk.org/u/lgivord)\
**Post date:** [March 22, 2023, 3:43pm UTC](https://discourse.vtk.org/t/vtk-multi-renderwindow-and-renderitem-in-qml/10985/5 "2023-03-22T15:43:30Z")

</div>

ok, it’s not as trivial as with the new support introduced by John with VTK 9.2 unfortunately.

I’m quite busy this week so I will probably check that next week unless someone has other solutions here 🙂
