Re: QwtPlot::print(printer), position of external legend
Brought to you by:
rathmann
From: Uwe R. <Uwe...@ti...> - 2009-02-26 06:30:41
|
On Wednesday 25 February 2009 21:29, Daniel Franke wrote: > Just to mention it, with this is one issue left: the legend is positioned > where specified, but if no print-filter is defined, the background of the > canvas will overwrite it because the legend is printed before the > background. Ideally it would be the other way round (overloading print(), > or not painting the canvas' background will fix this, of course). The idea of an external legend is, that its layout/design is under the control of the application code. This offers a "hack" to put it on the canvas, but the design is not tailored for this situation. Introducing a QwtPlotLegendItem ( see the John's thread about the marker in screen coordinates ) is the "clean" solution. Uwe |