January 2019
Intermediate to advanced
384 pages
11h 50m
English
Why don't we make OpenGL the default rendering mode for widgets? The problem is the integration with native theming—you cannot simply forward your OpenGL context to the OS calls painting the GUI elements. Even if you could, this would result in many OpenGL calls for drawing small elements with many state changes making it rather inefficient. This makes OpenGL optimal for graphics contents embedded in some widget hierarchy, as with the QOpenGLWidget.
For rendering the general QpenGL, the following guidelines apply:
Read now
Unlock full access