jnk5y
19th October 2006, 02:01
Hello all,
I am using QGraphicsView and QGraphicsScene to display thousands of points from a database.
Collecting the points from the database takes about 2 seconds but when i try to display them on a scene by using:
QGraphicsItem *item = new QGraphicsRectItem (x,y,1,1);
SampleScene->addItem(item);
it takes about 10 seconds to load the rectangles and then when i move the scene in the view it is very sluggish and takes a while to refresh.
Any ideas on making this faster to display?
Any hints or tips on using QGraphicsView to it's maximum potential?
John
I am using QGraphicsView and QGraphicsScene to display thousands of points from a database.
Collecting the points from the database takes about 2 seconds but when i try to display them on a scene by using:
QGraphicsItem *item = new QGraphicsRectItem (x,y,1,1);
SampleScene->addItem(item);
it takes about 10 seconds to load the rectangles and then when i move the scene in the view it is very sluggish and takes a while to refresh.
Any ideas on making this faster to display?
Any hints or tips on using QGraphicsView to it's maximum potential?
John