hi,

I have seen that in

void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
QWidget* /*widget*/);

{
painter->setClipRect(option->exposedRect);//update only the area which is visible currently

}

How costly is this?? is it resetting the region needed to be painted or is it clipping the qgraphicsitem itself??.Is it a better way to do this ,i just want to paint the part of item which is visible