PDA

View Full Version : How to display external legends in Qwt?



saliemam
1st December 2010, 03:33
Hi everyone,

I'm trying to create a plot with an external legends. I looked forward some simple instructions which show me the way.

I know that after configuring the legends, I have to use this instruction:

insertLegend(d_legend, QwtPlot::ExternalLegend);
but I couldn't find a way to print them. Usually people say use printlegend (or something) to do that. I tried but it was unsuccessful :(

Would you please send me a simple piece of code which shows how to that?
Consider that my plot name is Plot and put the legend in a layout named HLayout.

Thanks