作者:Fu_Lin_

Qt 运行提示Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags()解决方案

前言

  今天在别的电脑上面运行我写好的Qt程序报错如下:
在这里插入图片描述
   错误提示语句如下

   Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0) .
   This is most likely caused by not having the necessary graphics drivers installed.
Install a driv

lock