Re: QwtPlotLegendItem::geometry
Brought to you by:
rathmann
From: Uwe R. <Uwe...@ti...> - 2013-09-28 13:24:48
|
Hi Gianni, > looking at the legend example and setting border margin = 1 for the > QwtPlotLegend, it seems that bottom and right positions make disappear a > pixel for the legend (at bottom and right side respectively). I modified > the "QRect QwtPlotLegendItem::geometry( const QRectF &canvasRect ) > const" code as follows: For rendering to PDF - or in other situations, where scaling is enabled - this patch won't work properly. Guess you have to adjust somehow with the border pen width ( as float ). Could you have a look at it and upload a patch at sourceforge ? Uwe |