PDA

View Full Version : Why QGrapchicsScene invalidate for foreground seems to throws updating on itemlayer?



tonnot
28th November 2011, 19:18
I have a 'map' with 100.000 rectangles at the 'itemslayer',
I want to have a dynamic line creation and I draw it at Foreground layer. (That is I dont want to have a lot of updates... )
The performance is poor, you note the mouse heavy to move, An I think that is an update for every rectangle that this line 'touchs' .
What is for the foregroundlayer then. I thought that It'd let me to draw over a grapchisview without updating the itemlayer...
Maybe it is related with there is not cache for foreground ?
Any idea ? Thanks.