Re: change position of the legend's items
Brought to you by:
rathmann
From: Gabriel <gab...@ho...> - 2007-03-14 11:33:25
|
Gabriel <gabetherock <at> hotmail.com> writes: > > Hello > > Im trying to change the position of the legend. To do it, I write: > > QwtPlotLayout *layout = plot->plotLayout(); > layout->setLegendPosition(pos); > > This change the position of the legend, but I would like change the > internal organization (legend's items organization). When I change the > position of the legend to Bottom or Top, the legend's items stay with the same > organtization than before, that is to say, with one column and they don't > change to a multiple column organization > > The legend is created as follows: > > plot->insertLegend(new QwtLegend(), QwtPlot::RightLegend); > > Maybe, I have to create it in another way, but i don ´t know how > > Thank you > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > qwt-interest mailing list > qwt-interest <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qwt-interest > If I write: plot->insertLegend(new QwtLegend(), QwtPlot::TopLegend); it changes the legend's items organization(n columns) but this doesn t solve my problem. I would like to know how change the legend's items organization of a legend already created, or , if I have to insert a new legend every time I want to change the internal organization of the legend |