I’m experiencing a performance issue when using QCustomPlot
and QOpenGLWidget
together in a QTabWidget
. Each of these widgets is placed on a separate page in the QTabWidget
. When both are enabled and the current tab is the QCustomPlot
page, the drawing performance of QCustomPlot
degrades significantly.
When either QCustomPlot
or QOpenGLWidget
is enabled individually, performance is excellent, with rendering times under 15
ms. However, when both widgets are enabled and the QTabWidget
is showing the QCustomPlot
page, the rendering time for QCustomPlot
increases dramatically to about 150
ms per frame.
Does the presence of QOpenGLWidget
impact the performance of QCustomPlot
in this scenario? Are there any known conflicts or optimizations for improving performance when both are used together, especially in a QTabWidget
?