仅在QCHART中为数据系列启用抗氧化
我正在使用QCHARTS库来绘制我的数据,并想对图表上的行启用反相反。我找到了一种方法,它正在调用qgraphicsview :: setRenderhint(qpainter.antiasiasing)
在我的qchartview
对象上。当我使用它时,图表中的线条会抗恶心,但是传说中的方形标记并不是完美的正方形。
没有qpainter.antiasing
:
qpainter.antiasing
:
在那里仅在QCHART
或QCHARTVIEW
中启用对线系列的反相机的方法?
I'm using QCharts library to plot my data and I want to enable anti-aliasing for lines on chart. I found a way to do this and it is calling QGraphicsView::setRenderHint(QPainter.Antialiasing)
on my QChartView
object. When I use it, lines in the chart get anti-aliased, but square-shaped markers in the legend don't render as perfect squares.
Without QPainter.Antialiasing
:
With QPainter.Antialiasing
:
Is there a way to enable anti-aliasing only for line series in QChart
or QChartView
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论