Hi all,

I have mainwindow and it has multiple objects of QGraphicsItem and I want to use a global variable (for Z). Now when the mouse click is over a QGraphicsItem I will increment the Z value so that current QGraphicsItem will be on the top even though there are other
overlapping items. Can somebody suggest what is the best way to access the global Z value and increment it?

Rachana