can VTK work width opengl desktop and qt5 quick?

i have opengl 3.0 desktop + qml program like this :Scene Graph - Rendering FBOs in a thread | Qt Quick 5.15.16
I use it play video ,it was work well.

when i set vtk graphicsBackend
QQuickVTKRenderWindow::setupGraphicsBackend();

qml backend will set opengl version to opengl ES version.

my custome video control base on FBO will not work.,

I try to build vtk with some opengl2 options and change openGL version in QQuickVTKRenderWindow::setupGraphicsBackend , both are no effect

how can i make its work together?

Cc: @sankhesh

@nocanstillbb What makes you think that you’re getting the opengles API? In general, vtk and qt both request opengl core API by default.

Because my OpenGL shader reports an error when linking to the OpenGL program,

it appears that my Ubuntu OpenGL version is 3.0, which is less than the VTK OpenGL version 3.2, causing this issue.

If I use the environment variable putenv((char *)"MESA_GL_VERSION_OVERRIDE=3.0");,

both my OpenGL shader and VTK can work, even though VTK reports many errors telling me that the OpenGL version is too low.

VTK’s minimum opengl version is Core profile 3.2. Doesn’t mean that it is giving you GLES.

Perhaps, all you need is a graphics driver update.

This happens in my Ubuntu 16.04 virtual machine development environment. Typically, we would deploy to devices that already have the graphics card driver installed.

Sincere thanks