QCustomPlot Discussion and Comments

Custom items in legendReturn to overview

Hello,

I wish I could add items not corresponding to QCPAbstractPlottable in the QCPLegend. I have several QCPAbstractItem (QCPItemLine with different tails or heads) for example) represented on my plot, and I would like to add in the legend what each type of symbol corresponds to.
I should be able to add custom elements of type [icon (or image) title] in the legend. I searched but I can't find a hack to do this.
Does anyone have an idea?

thank you !

IIn fact, I found a solution, just create my own object inheriting from QCPAbstractLegendItem!