Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想找出我的 Qt 系统上可用的 OpenGL 版本。我知道有一个本机 OpenGL get-version-string 函数可用,它返回此信息,但在使用 Qt 使用 OpenGL 时它是无用的(因为 Qt 有一些丑陋的错误,有时会导致 OpenGL 未被正确检测/初始化的情况) .
那么:是否有可用的 Qt-function/-class/-whatever 可用于检索当前的 OpenGL 版本(或 Qt 认为当前的 OpenGL 版本是什么)?
谢谢 :-)