Re: Symbols in custom legend
David Stranz <David_Stranz <at> MassSpec.com>
2010-06-02 13:33:18 GMT
Hi Uwe,
Help me understand this. Is QwtPlotCurve::legendItem() supposed to
return a new instance each time it is called? Like other parts of Qt
and Qwt, I thought it was returning the address of an instance that the
QwtPlotCurve controlled. If the call returns a new instance, how does
this new instance become associated with the QwtPlotCurve? Is it
necessary to call QwtPlotCurve::setLegendItem() with the new instance?
Thanks,
David
_______________________________________________________________
David Stranz, Ph.D. david_stranz <at> MassSpec.com
Sierra Analytics, Inc.
5815 Stoddard Road, Suite 601
Modesto, CA 95356
Tel: (209) 545-8508
http://www.massspec.com
_______________________________________________________________
Uwe Rathmann wrote:
>> On 23.05.2010 21:25, David Stranz wrote:
>
>> Ah, yes, I should have called parent's legendItem().
>
> No you don't need to - but you have to set the legend flags
> (QwtLegend::setDisplayPolicy) for your custom identifiers.
(Continue reading)