# vtkQWidgetWidget Example usage (other than the unit tests)

**URL:** https://discourse.vtk.org/t/vtkqwidgetwidget-example-usage-other-than-the-unit-tests/11893
**Category:** Development
**Created:** [July 6, 2023, 6:08pm UTC](https://discourse.vtk.org/t/vtkqwidgetwidget-example-usage-other-than-the-unit-tests/11893 "2023-07-06T18:08:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Jackson](https://discourse.vtk.org/user_avatar/discourse.vtk.org/michael_jackson/32/61_2.png) [@Michael\_Jackson](https://discourse.vtk.org/u/Michael_Jackson)
#### Post date: [July 6, 2023, 6:08pm UTC](https://discourse.vtk.org/t/vtkqwidgetwidget-example-usage-other-than-the-unit-tests/11893/1 "2023-07-06T18:08:48Z")

</div>

Is there a working example that uses the vtkQWidgetWidget with Qt6 (Hopefully). I tried to adapt the unit test bits into our application but nothing shows up that we can “see”. Was just adding a simple QButton. I’d like to move an entire QFrame full of QWidgets into the VTK rendering window to act sort of like a HUD. This is for a normal desktop application. I see that maybe the vtkQWidgetWidget was originally meant for VR applications. Has anyone gotten this to work successfully? Does anyone have ideas for integrating a 2D pane of buttons/lists/sliders/checkboxes into a HUD like functionality? We are using QWidgets. QML isn’t a consideration for other reasons.

Thank you to anyone for helpful ideas/links/pointers.

---

<div class="post-metadata">

### Author: ![LucasGandel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lucasgandel/32/1831_2.png) [@LucasGandel](https://discourse.vtk.org/u/LucasGandel)
#### Post date: [July 7, 2023, 9:05am UTC](https://discourse.vtk.org/t/vtkqwidgetwidget-example-usage-other-than-the-unit-tests/11893/2 "2023-07-07T09:05:10Z")

</div>

Hi Michael,

I am not sure about qt6 support, but you might want to have a look at the Paraview source code.  
Some plugins extensively use this widget:

- XR: [https://gitlab.kitware.com/paraview/paraview/-/blob/master/Plugins/XRInterface/Plugin/vtkPVXRInterfaceHelper.cxx#L593](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Plugins/XRInterface/Plugin/vtkPVXRInterfaceHelper.cxx#L593)
- WebView: [https://gitlab.kitware.com/paraview/paraview/-/blob/master/Plugins/XRInterface/Plugin/Representations/vtkWebPageRepresentation.cxx#L61](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Plugins/XRInterface/Plugin/Representations/vtkWebPageRepresentation.cxx#L61)

Hope this helps,  
Lucas
