[Qt-interest] QGraphicsItem caching

Ender EREL erelender at yahoo.com
Thu Mar 11 11:15:05 CET 2010


Hello everyone,

I am using QGraphics framework to render some graphics on a 3D OSG 
background. I do the OSG rendering in the drawBackground of 
QGraphicsView, and the items in the scene are rendered on top of this 
automatically (Note: some items are semi-transparent). Since the 3D 
scene is dynamic, i connected a zero-timer to the update() slot of my 
QGraphicsScene. This causes the items to be updated as the background 
updates.

Here comes my question:

Can i cache the QGraphicsItems so that they are not updated every time 
the background is redrawn? Or do they need to be updated every time 
because of the change in the background and transparency?

Best Regards.

-- 
Ender EREL



More information about the Qt-interest-old mailing list