QCustomPlot Discussion and Comments

Corruption with OpenGL rendering and multiple contextsReturn to overview

When running multiple plots or another widget which uses OpenGL in the same window as a QCustomPlot widget (when OpenGL is set to true) a noticeable corruption occurs. This has been tested on several devices with several Qt versions, however the corruption persists. On some configurations even a crash can occur on makeCurrent().
Configurations tested:

OS: Ubuntu 14.04.5, Debian stretch
Qt Versions: 5.9, 5.10, 5.7, 5.5
GPUs: AMD R7 240, Intel HD Graphics 4600
Driver: Mesa 11.2.0, 13.0.6

From what I have been able to gather other people seem to have similar problems so I'm opening this thread in hopes of providing more information and as a gentle reminder that this problem is still affecting people.

Some graphics cards have a limit on the number of contexts (maybe it's just related to the size of the memory).
In my situation on the Intel HD Graphics 530 I can run no more than 128 QCP-widgets with OpenGL.
On the video card Nvidia Geforce GTX 950m I launched more than 1000 QCP-widgets with OpenGL without problems.
OS: Win 7, Win 10.
Qt: 5.8-5.10.1