# OpenGL state errors with QVTKOpenGLWidget and vtk9.0

**URL:** https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglwidget-and-vtk9-0/6448
**Category:** Support
**Created:** [August 23, 2021, 9:25am UTC](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglwidget-and-vtk9-0/6448 "2021-08-23T09:25:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pi42](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pi42/32/3170_2.png) [@pi42](https://discourse.vtk.org/u/pi42)
#### Post date: [August 23, 2021, 9:25am UTC](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglwidget-and-vtk9-0/6448/1 "2021-08-23T09:25:38Z")

</div>

I am trying to put a QVTKOpenGLNativeWidget in QDialog with QVBoxLayout, while adding the vtkImageActor to QVTKOpenGLNativeWidget , that window don’t show any rendering result.

---

<div class="post-metadata">

### Author: ![pi42](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pi42/32/3170_2.png) [@pi42](https://discourse.vtk.org/u/pi42)
#### Post date: [August 23, 2021, 9:35am UTC](https://discourse.vtk.org/t/opengl-state-errors-with-qvtkopenglwidget-and-vtk9-0/6448/2 "2021-08-23T09:35:17Z")

</div>

Oh , I have found out the problem. I just make the rendering processed in constructor function
