The 2D Painting example shows how QPainter and QOpenGLWidget can be used together to display accelerated 2D graphics on supported hardware.
ios,opengl
opengl/2dpainting/main.cpp
Graphics
Shows how to manually rotate a textured 3D cube with user input.
opengl
opengl/cube/main.cpp
3D
The Hello GL2 example demonstrates the basic use of the OpenGL-related classes provided with Qt.
opengl
opengl/hellogl2/main.cpp
3D
Demonstrates OpenGL ES 3.0 functions via QOpenGLExtraFunctions.
android,opengl
opengl/hellogles3/main.cpp
Mobile
Graphics
This example shows how to create a minimal QWindow based application for the purpose of using OpenGL.
opengl
opengl/openglwindow/main.cpp
opengl/openglwindow/openglwindow.h
opengl/openglwindow/openglwindow.cpp
Graphics
This example shows how to create a minimal QOpenGLWidget based application with stereoscopic rendering support.
opengl
opengl/stereoqopenglwidget/main.cpp
Graphics
The Textures example demonstrates the use of Qt's image classes as textures in applications that use both OpenGL and Qt to display graphics.
ios,opengl
opengl/textures/main.cpp