[Qt-interest] Changing the shape of a QGraphicItems
Sean Harmer
sean.harmer at maps-technology.com
Mon Jun 8 12:16:10 CEST 2009
On Monday 08 Jun 2009 10:53:28 Sujan Dasmahapatra wrote:
> But this data points are being modiefied from outside Geometry
> class so prepareGeometryChange() cannot be called from outside.
> I am calling update() but still it's not updating the geometry.
But according to your code snippet you are setting the new geometry on some
Points array not on your Geometry object. Why not provide a function on your
subclass that sets the new point geometry on your item and then calls
prepareGeometryChange()?
Sean
More information about the Qt-interest-old
mailing list