问题找到了,应该是因为电脑太老的原因,显卡不支持OpenGL2.0。
我又安装QT的5.3版本,示例中的部分程序可以运行,还有一部分闪退,程序输出错误:
QWindowsGLContext::getProcAddress: Unable to resolve 'glBindFramebuffer'
QWindowsGLContext::getProcAddress: Unable to resolve 'glBindFramebufferOES'
QWindowsGLContext::getProcAddress: Unable to resolve 'glBindFramebufferARB'
这个错误是因为显卡不支持OpenGL2.0的原因,之前的QT5.4闪退的原因应该是和这个是同一理由。
我又安装QT的5.3版本,示例中的部分程序可以运行,还有一部分闪退,程序输出错误:
QWindowsGLContext::getProcAddress: Unable to resolve 'glBindFramebuffer'
QWindowsGLContext::getProcAddress: Unable to resolve 'glBindFramebufferOES'
QWindowsGLContext::getProcAddress: Unable to resolve 'glBindFramebufferARB'
这个错误是因为显卡不支持OpenGL2.0的原因,之前的QT5.4闪退的原因应该是和这个是同一理由。