Hello all!
I am using Qwt from SVN trunk and am subclassing QwtPlotIntervalCurve. I only override the drawSeries and drawLines functions. Everything works except for the legend annotation. I would like a box that is colored the same as the line to appear. To fix that, I changed my constructor to add a symbol like follows:
Qt Code:
QwtIntervalSymbol *symbol = new QwtIntervalSymbol (QwtIntervalSymbol::Box); setSymbol (symbol);To copy to clipboard, switch view to plain text mode
This shows a box in the legend, but the box is black instead of the color of the line. This makes sense since the color is probably set after the constructor, but I'm not sure what to override to get the color like I'd like it.
Is this the best way of doing this? What else should I override to get the color to be correct?
Thanks for the help!
Joey
Bookmarks