gpt4 book ai didi

QT安装-OpenGL(无角度)

转载 作者:行者123 更新时间:2023-12-04 12:39:28 30 4
gpt4 key购买 nike

我已经安装了最新版本的 QT,但似乎这个版本包含一些 DirectX 调用,所以我希望默认安装程序使用 ANGLE!

我想安装 100% openGL 版本,但找不到!

有什么想法吗?

谢谢

最佳答案

所有官方二进制包都配置有

  -opengl dynamic

这意味着程序可以使用已安装的(桌面)OpenGL 驱动程序、DirectX(通过 ANGLE)或软件 (Mesa) 中的 OpenGL 仿真作为 OpenGL 后端。如果你总是想使用 Desktop OpenGL,你可以通过

  1. 将环境变量 QT_OPENGL 设置为 desktop
  2. 调用QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL)

另见 http://doc.qt.io/qt-5/windows-requirements.html#graphics-drivers .

如果您想要一个支持桌面 OpenGL 后端的 Qt 版本,您必须从源代码构建 Qt。

关于QT安装-OpenGL(无角度),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48092912/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com