- Qt 6.5
- Qt OpenGL
- OpenGL Examples from the Qt OpenGL module
- Qt 6.5.2 Reference Documentation

# OpenGL Examples from the Qt OpenGL module

These examples describe how to use the Qt OpenGL module.

Qt provides support for integration with OpenGL implementations, giving developers the opportunity to display hardware accelerated 3D graphics alongside a more conventional user interface.

These examples demonstrate the basic techniques used to take advantage of OpenGL in Qt applications.

2D Painting Example | The 2D Painting example shows how QPainter and QOpenGLWidget can be used together to display accelerated 2D graphics on supported hardware.
Cube OpenGL ES 2.0 example | Shows how to manually rotate a textured 3D cube with user input.
Hello GL2 Example | The Hello GL2 example demonstrates the basic use of the OpenGL-related classes provided with Qt.
Hello GLES3 Example | Demonstrates OpenGL ES 3.0 functions via QOpenGLExtraFunctions.
Textures Example | The Textures example demonstrates the use of Qt's image classes as textures in applications that use both OpenGL and Qt to display graphics.