[Qt-interest] How to update
Sean Harmer
sean.harmer at maps-technology.com
Thu Jul 2 10:05:11 CEST 2009
On Thursday 02 Jul 2009 08:55:35 Sujan Dasmahapatra wrote:
> No Sean I need to update point[numberOfpoints] because I need those
> points to save the data points in file.
Ah sorry, you never specified this, so I assumed that you were only interested
in drawing them.
In that case then you can add a function that calculates the position of your
data in scene coordinates. To do this you can either use the
QGraphicsItem::sceneTransform() and apply the transformation yourself, or you
could use QPointF as a data type and call QGraphicsItem::mapToScene() on each
point.
Hope this helps,
Sean
More information about the Qt-interest-old
mailing list