The Textures example demonstrates the use of Qt's image classes as textures in applications that use both OpenGL and Qt to display graphics.

\titleTextures Example \ingroup examples-widgets-opengl

Example project @ code.qt.io