Understanding the Qt OpenGL module
Qt Quick and Qt Widgets are the two main approaches to user interface (UI) development in Qt. They exist to support various types of UIs and are built on separate graphics engines that have been optimized for each of these. It is possible to combine OpenGL graphics API code with both of these UI types in Qt. This is useful when the application contains its own OpenGL-dependent code or when integrating with a third-party OpenGL-based renderer. The OpenGL/OpenGL ES XML API Registry is used to generate the OpenGL header.
The Qt OpenGL module is intended for use with applications that require OpenGL access. The convenience classes in the Qt OpenGL module help developers build applications more easily and faster. This module is responsible for maintaining compatibility with Qt 5 applications and Qt GUI. QOpenGLWidget
is a widget that can add OpenGL scenes to UIs that use QWidget
.
With the introduction of Qt RHI as the rendering foundation in Qt,...