# Glitches when passing from QVTKWidget to QVTKOpenGLWidget

**URL:** <https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068>\
**Category:** Development\
**Created:** [April 16, 2020, 11:21am UTC](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068 "2020-04-16T11:21:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![embeddedmz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/embeddedmz/32/12_2.png) [@embeddedmz](https://discourse.vtk.org/u/embeddedmz)\
**Post date:** [April 17, 2020, 2:42pm UTC](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068/6 "2020-04-17T14:42:42Z")

</div>

Thank you very much @cory.quammen

With the same code (weather stations Qt example from vtkMap) :

With VTK 8.0.0.rc1-54-ga9b1325 (the one used in ParaView 5.4.1), there’s no glitches :

![wsmap_vtk_8_0_0](https://discourse.vtk.org/uploads/default/original/2X/4/46268e096d44d3da5740b9000354650187e92bce.png)

With VTK 8.2.0 (I initialized the QSurface properly)  
 ![wsmap_vtk_8_2_0](https://discourse.vtk.org/uploads/default/original/2X/9/92746535d7440ab4c486714285daff8bf23412e6.png)

With the latest VTK from master (using QVTKOpenGLStereoWidget and QVTKRenderWindowAdapter::defaultFormat to initialize the QSurfaceFormat’s default format)

I managed to have this result by playing with the camera (possible with 8.2.0 too)  
 ![wsmap_vtk_master](https://discourse.vtk.org/uploads/default/original/2X/d/d92a4d1ae86acb7bc67e14150d93767acb91211b.png)

but this is the first result :  
 ![wsmap_vtk_master_2](https://discourse.vtk.org/uploads/default/original/2X/5/5178c6f9ac75a52e1171f5c8a119edb8bcc6f45d.png)

Otherwise, without using Qt (X11 window ?), there’s no glitches with all the versions.

---

_[View the full topic](https://discourse.vtk.org/t/glitches-when-passing-from-qvtkwidget-to-qvtkopenglwidget/3068)._
