QT running prompt failed to create OpenGL context for format qsurfaceformat (version 2.0, options qflags() solution)

running on other computers today the Qt program I wrote reported the following error:


Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redbuffersize-1, greenbuffersize-1, bluebuffersize-1, depthbuffersize-1 alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1,
).
This is most likely to cause by not having the necessary graphics drivers installed.
Install a driver providing OpenGL 2.0 or higher, or, if This is not possible, Make sure the ANGLE Open GL ES 2.0 emulation software (libEGL. DLL, Libglesv2.dll and d3dcompiler_*. DLL) are available in the application executable’s directory or in a location listed in PATH.

baidu once no result, mostly is what driver problem or Qt reinstall problem

Read More: