View Full Version : QGraphicView became slow when i set the comsmetic QPen width >1 , need help?

24th June 2013, 13:12
hi, i had my graphicsview with about 2000 QGraphicsPathitem.

they are overlay to eachother, the coordinary are very large, about 60000 to -60000

i set transform to make it fit in to the viewport.

i already set the pathitem's pen to cosmetic(true) , pen width is 1.

the view moves smooth when i scrolling ,very good, but!!!

when i set the pathItem's pen width to 2, the scrolling became very very slow!!

why is that?

can i improve it ? i just use the QGraphicsPathItem, no costume item.