Closed pabigot closed 10 years ago
Of course, a single QCPAxis
can't convert a QPoint
, and it turns out QCPAxisRect
has no concept of which axes are horizontal or vertical unless they've been specified for drag or zoom (which might be different for whatever reason). So the helper can only be provided in QCustomPlot
and only in relation to xAxis
and yAxis
.
Use of Qt capabilities is simpler if one can traffic in
QPoint
andQPointF
rather than doubles. Support this by extending theQCPAxis
pixel/coord converters withmapToCoord
andmapFromCoord
, then lift this toQCPAxisRect
adding support forQRect
/QRectF
, then lift that toQCustomPlot
using the default axis rect.