仅在QCHART中为数据系列启用抗氧化

发布于 2025-02-12 07:19:04 字数 661 浏览 0 评论 0原文

我正在使用QCHARTS库来绘制我的数据,并想对图表上的行启用反相反。我找到了一种方法,它正在调用qgraphicsview :: setRenderhint(qpainter.antiasiasing)在我的qchartview对象上。当我使用它时,图表中的线条会抗恶心,但是传说中的方形标记并不是完美的正方形。

没有qpainter.antiasing

qpainter.antiasing

”

在那里仅在QCHARTQCHARTVIEW中启用对线系列的反相机的方法?

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:

Without QPainter.Antialiasing

With QPainter.Antialiasing:

With QPainter.Antialiasing

Is there a way to enable anti-aliasing only for line series in QChart or QChartView?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文