[Qt-interest] Issue before release

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Fri Jun 19 12:20:46 CEST 2009


Hi Sujan, 
 
I think drawPolyLine will only appear if the QGraphicsItem has been sized
correctly.  How are you sizing the item that you are drawing in?  Maybe
QGraphicsPolygonItem would be better? 
 
Tony.
 

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Sujan Dasmahapatra
Sent: Friday, 19 June 2009 19:19
To: qt-interest at trolltech.com
Subject: [Qt-interest] Issue before release



Dear Friends

My software version 1.1 is ready for release just one issue I have to
resolve before I release.My software is an engineering software where I read
various data file (points) and create a curve with those pointd and display
that on the screen.

I have a scene(QGraphicsScene) and a view(QGraphicsView) I have set that
scene on the view constructor.Now every time I load a new curve  I simply
add the curve into my scene.For some geometries the loading is not proper..

Can somebody tell me what other  matters I  need to consider  for loading my
geometry on the screen and fitting it properly in the view???

I have followe these steps.

1.       Read the data file (set of points) - reading through file dialog.

2.       Create a polyline with those data points which is a graphics
item(QGraphicsItem)...drawPolyline(points,numberofpoints)

3.       Add that graphics item into the scene(addItem).

4.       Fit the geometry in the view.(fitInView).

These 4 major steps I am executing  for loading a geometry on the screen.I
think I am missing somethingelse so for some cases they're not being loaded
properly in turn what happenes is not geometry is visible or the geometry is
somewhereelse on the screen/view I can't see.Why this is happening can
anyone please tell me.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090619/489de802/attachment.html 


More information about the Qt-interest-old mailing list