QVTKOpenGLWidget broken on Windows with Intel GPU driver >= 26.20.100.6708 if using another OpenGL context in the same application
There is a bug on windows after some recent Intel drivers update (versions superior to 26.20.100.6708). It is no longer possible to have a QVTKOpenGLWidget and a QWebEngineView or a QVTKOpenGLNativeWidget working in the same app.
It looks like both the QWebEngineView/QVTKOpenGLNativeWidget and QVTKOpenGLWidget requires a valid context OpenGL, but for some unknown reason the QWebEngineView/QVTKOpenGLNativeWidget is no longer able to initialize its OpenGL context correctly when there is already a QVTKOpenGLWidget in the app. The QWebEngineView/QVTKOpenGLNativeWidget alone (without the QVTKOpenGLWidget view) works perfectly, the QVTKOpenGLWidget view alone also, but the 2 together won’t work properly.
Reproductible with :
Windows 10 64 bit version Intel UHD 620 and intel UHD 630 (or any Intel GPU really) VTK 8.1 or 8.2 or master Qt 5.9.4 64 bits As soon as we downgrade the Intel driver version on the affected computers, it works fine. But one of our customer has bought a Lenovo ThinkPad X1 (7th Gen) that won’t let us downgrade the Intel driver…
Here is a minimal example and the result : CMakeLists.txt main.cpp
No Bug :
Bug :
A workaround is to use QVTKOpenGLNativeWidget instead.
Copied from : https://discourse.vtk.org/t/intel-uhd-620-vtk-qt-bug-with-new-drivers-on-windows/1694/12