Re: draggable QwtPlotLegendItem
Brought to you by:
rathmann
From: Gianni A. <gia...@vi...> - 2013-09-06 11:20:07
|
Il 9/4/2013 9:48 PM, Uwe Rathmann ha scritto: > QwtPlotShapeItem represents a shape in plot coordinates - where it is > finally painted to the canvas depends on the geometry of the canvas and > the current scales. The corresponding painter path in widget coordinates > is calculated temporary only inside the draw method. > > QwtPlotLegendItem doesn't store any QPainterPath or QRectF at all. > Instead it stores a margin and the alignment relative to the canvas. The > geometry is calculated on the fly - wherever it is needed. Maybe I'm wrong but on this basis and thinking of boundingRect() that returns an invalid QRectF ... is it proper to mix these two different kind of objects? I mean, all deriving from a common QwtPlotItem? In fact what you explained is it not so clear at first. Regards Gianni |