Drawing a Callout on Top of a Chart

注意: This is part of the Charts with Widgets Gallery 范例。

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

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

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