Hi guys,

I am using the GVFramework and need to create some "light" items. (rect item showing some image(consiting of some lines). It looks fine, but after adding 100 items or even less, when I move the cursor my CPU usage reaches 100, as if the scene was doing a full repaint. Those items should be drawn and nothing will be changed(in that items) after creating them. I just need to be able to create them/show on the scene/ add remove them.
Still when my own custom item(100 of them) my scene works slow.
Some code:
Qt Code:
  1. ///item derived from QGraphicsRectItem has those settings in the constructor
  2. setAcceptDrops(false);
  3. setEnabled(false);
  4. setAcceptsHoverEvents(false);
  5. setAcceptedMouseButtons(false);
To copy to clipboard, switch view to plain text mode 

I will need to add more then 100 000 items in the future. (I know that it is said that "up to milions of items can be used", but how to make it work fast)

Thanks for any advice.

Maverick