# Blank render windows after updating vtk 8.2 to 9.3

**URL:** https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209
**Category:** Support
**Created:** [January 31, 2024, 9:58pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209 "2024-01-31T21:58:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Blake\_Xi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/blake_xi/32/8392_2.png) [@Blake\_Xi](https://discourse.vtk.org/u/Blake_Xi)
#### Post date: [January 31, 2024, 9:58pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/1 "2024-01-31T21:58:16Z")

</div>

Running into an issue with vtkRenderWindow(vtkGenericOpenGLRenderWindow), vtkRenderer(QQuickFramebufferObject::Renderer) after updating our vtk library from 8.2 to 9.3.0. We are using QT 5.15. All the windows are blank (completely black windows), but the interactors still works as expected. I don’t know what changed in vtk to cause this behavior. No vtk errors at all.  
I build some vtk examples with no issues. Any suggestions here?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [February 1, 2024, 8:59pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/2 "2024-02-01T20:59:05Z")

</div>

Hello,

Are you using `QVTKOpenGLNativeWidget`?

best,

PC

---

<div class="post-metadata">

### Author: ![Blake\_Xi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/blake_xi/32/8392_2.png) [@Blake\_Xi](https://discourse.vtk.org/u/Blake_Xi)
#### Post date: [February 1, 2024, 9:17pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/3 "2024-02-01T21:17:16Z")

</div>

No, there is no reference to QVTKOpenGLNativeWidget in the codebase. We use the vtkGenericOpenGLRenderWindow directly. Is that an issue?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [February 1, 2024, 10:44pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/4 "2024-02-01T22:44:12Z")

</div>

Then I recommend using it since you’re using Qt.

---

<div class="post-metadata">

### Author: ![Blake\_Xi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/blake_xi/32/8392_2.png) [@Blake\_Xi](https://discourse.vtk.org/u/Blake_Xi)
#### Post date: [February 2, 2024, 7:15pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/5 "2024-02-02T19:15:54Z")

</div>

What is the benefit of using QVTKOpenGLNativeWidget?

---

<div class="post-metadata">

### Author: ![sankhesh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sankhesh/32/73_2.png) [@sankhesh](https://discourse.vtk.org/u/sankhesh)
#### Post date: [February 2, 2024, 10:04pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/6 "2024-02-02T22:04:23Z")

</div>

@Blake_Xi Since you mentioned `QQuickFrameBufferObject`, it seems that you’re using a custom implementation of VTK in Qt QML. Is that right?

There is a module in the VTK source tree called `vtkGUISupportQtQuick` that exposes a `QQuickVTKItem` for use in QML applications. Take a look at the test [TestQQuickVTKItem\_1](https://gitlab.kitware.com/vtk/vtk/-/blob/1df5e2c0629462569ac491a54729514f26db8256/GUISupport/QtQuick/Testing/Cxx/TestQQuickVTKItem_1.qml) for an example.

---

<div class="post-metadata">

### Author: ![Blake\_Xi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/blake_xi/32/8392_2.png) [@Blake\_Xi](https://discourse.vtk.org/u/Blake_Xi)
#### Post date: [February 5, 2024, 5:09pm UTC](https://discourse.vtk.org/t/blank-render-windows-after-updating-vtk-8-2-to-9-3/13209/7 "2024-02-05T17:09:52Z")

</div>

Thanks everyone for replying. Found another post: [Vtk9.x Cannot used in QQuickFramebufferObject::Renderer \*createRenderer() but vtk8.x can do . - #13 by NewPony](https://discourse.vtk.org/t/vtk9-x-cannot-used-in-qquickframebufferobject-renderer-createrenderer-but-vtk8-x-can-do/9652/13)  
I tried with the code change and the removal of `vtkRenderWindow->SetOffScreenRendering(true);` ends up fixing my issue.
