The QGLWidget class, part of the Qt framework, is a widget for rendering OpenGL graphics.
QGLWidget
provides functionality for displaying OpenGL graphics integrated into a Qt application. It is very simple to use. You inherit from it and use the subclass like any other QWidget
, except that you have the choice between using QPainter
and standard OpenGL rendering commands.
Note: This class is part of the legacy Qt OpenGL module and, like the other QGL classes, should be avoided in the new applications. Instead, starting from Qt 5.4, prefer using QOpenGLWidget
and the QOpenGL classes.