There is only one widget allowed ( it can be a composite one ) , that represents a plot item on the legend. Inserting a QLabel replaces but doesn't add something. Of course you could use a dummy plot item ( maybe a NULL works too - but I have never tries this ).
Also consider to reimplement YourCurve::legendItem/updateLegend instead of inserting a label manually.
Uwe
Bookmarks