Hello GL2 示例
Hello GL2 示例演示了 Qt 提供的 OpenGL 相关类的基本用法。
Qt 提供了QOpenGLWidget 类,以便在标准应用程序用户界面中渲染 OpenGL 图形。通过子类化该类并提供事件处理程序函数的重新实现,3D 场景就可以显示在部件上,这些部件可以放置在布局中,使用信号和插槽连接到其他对象,并像其他部件一样进行操作。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.