QCustomPlot Discussion and Comments

QCP 2.0.0 Adding QCPItemStraightLine to legendReturn to overview

Hi, everybody!

In my project I need to add some information about infinite lines (QCPItemStraightLine) to the legend, but, from what I have read in documentation, it seems that QCPLegend only adds a QCPLayoutElement and its subclasses. Maybe, I'm just blind... Can anyone point out a way to do so?

there are convenience functions in subclasses of QCPAbstractPlottable to add to the legend, but i'm pretty sure that you could manually add stuff to the legend