# QtQuick scenegraph is using an unsupported graphics API: 4.

**URL:** <https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095>\
**Category:** Development\
**Created:** [August 6, 2022, 2:46am UTC](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095 "2022-08-06T02:46:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claude](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/0ea827/32.png) [@claude](https://discourse.vtk.org/u/claude)\
**Post date:** [August 6, 2022, 2:46am UTC](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095/1 "2022-08-06T02:46:16Z")

</div>

Hi everyone,  
I’m using vtk-QtQuick component(QQuickVTKRenderItem,QQuickVTKRenderWindow)，and the following problem occurs when I try to build it:  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/9c25cc0e5d55e8605115b65a0eddc034dead5ec2.png)  
Version : QT6.2 , vtk9.2.0 rc2.  
What can i do to solve this problem?  
Thanks for your help

---

<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:** [August 6, 2022, 10:17pm UTC](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095/2 "2022-08-06T22:17:34Z")

</div>

Hi,

Have you tried calling `setupGraphicsBackend()` on your `QQuickVTKRenderWindow` instance as suggested by the message? According to its documentation:

> This method sets the graphics API to OpenGLRhi and sets up the surface format for intermixed VTK and QtQuick rendering. **Use this method before instantiating a QApplication/QGuiApplication** in a QtQuick/QML app with a VTK render view like [QQuickVTKRenderItem](https://vtk.org/doc/nightly/html/classQQuickVTKRenderItem.html).

(emphasis added)

Source: [VTK: QQuickVTKRenderWindow Class Reference](https://vtk.org/doc/nightly/html/classQQuickVTKRenderWindow.html)

regards,

Paulo

---

<div class="post-metadata">

**Author:** ![claude](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/0ea827/32.png) [@claude](https://discourse.vtk.org/u/claude)\
**Post date:** [August 8, 2022, 3:17am UTC](https://discourse.vtk.org/t/qtquick-scenegraph-is-using-an-unsupported-graphics-api-4/9095/3 "2022-08-08T03:17:49Z")

</div>

Thanks ! It solved my problem.
