在图表顶部绘制标注

注: 这是带 Widgets 图库的图表示例的一部分。

QChart 类提供了两个在场景坐标和系列域(由坐标轴范围定义)之间进行映射的方法。

QPointF QChart::mapToPosition(const &value, *series)QPointF QAbstractSeries

QPointF QChart::mapToValue(const &position, *series)QPointF QAbstractSeries

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.