如点样式、pointsLabelVisible等
且显式设置也没用
QT版本为5.12.0 MSVC 2017 64bit
如下散点图,图标为圆形的是没开openGL,为方块的是开启openGL以后的效果
[attachment=20128][attachment=20129]
查看了QtChart的源码,各种系列都继承自QAbstractSeries,其中包含了setUseOpenGL等方法,注释中有关于openGL功能的说明,大意为开启openGL为的是快速高效绘制大量数据点,因此它不支持许多原有的功能。
- The OpenGL acceleration of series drawing is meant for use cases that need fast drawing of large numbers of points. It is optimized for efficiency, and therefore the series using it lack support for many features available to non-accelerated series:
- Series animations are not supported for accelerated series.
- Point labels are not supported for accelerated series.
- Pen styles and marker shapes are ignored for accelerated series.
- Only solid lines and plain scatter dots are supported.
- The scatter dots may be circular or rectangular, depending on the underlying graphics hardware and drivers.
- Polar charts do not support accelerated series.
- Enabling chart drop shadow or using transparent chart background color is not recommended when using accelerated series, as that can slow the frame rate down significantly.