I have a hard time believing that. A file of 600,000 shapes costs me about 500Mb of additional RAM, which indicates almost 1kb per item. I must be doing something seriously wrong....Quote:
I suspect I would never get it working for a 150Mb data file if I use QGraphicsItems with QGraphicsScene/QGraphicsView.
I'm not so sure. One graphics item takes about 50 bytes of memory on average. How many items would you have in a 150MB file? 1M? That's less than 100MB of RAM used for the items.
Sorry, I am too new to Qt to implement such a thing. Could you direct me to some example?I wouldn't use polygons here. You have a pretty simple shape, you can create your own item class which will be much faster.
Also, polygons are mostly only about 10-20% of the total population, the rest are rectangles. Still worthwile to make a new class?
Bookmarks