QVTKOpenGLNativeWidget vkt9+qt5 framebuffer errors when using setParent

I solved the problem just now ! We should resource sharing between the Opengl contexts, and add just one line code before instantiating the QApplication like below:

QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);

and now I am no longer encountering this error.

1 Like