QCustomPlot Discussion and Comments

Semi-absolute QCPItemPositionReturn to overview

Hi,

I'd like to add QCPItemLine to the plot and set y of start and end in absolute coordinates, and x in plot coordinates.

More specifically, I'm drawing the line which indicates selected x value. It crosses plot from top to bottom, while moves as xAxis range changes. Right now I set both x and y in plot coordinates, but it looks weird when y range is changed.

I should have used QCPItemStraightLine instead of QCPItemLine - it's infinite so y coordinates do not matter.