The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
yes he will have to use setZValue... the z values set initially remain so during the program.If you need that the item should come on top, set the zvalue to a highest value on mouse press so that it is drawn on top of others...
dont forget to set it back to original zvalue, if u are manipulating the items based on zvalue![]()
Looks like there is again problem with boundingRect() as you did it here
boundingRect() should return the bounding area of the item appropriately (For eg square of dim 0,0,100,100 should return not more or less than QRectF(0,0,100,100) ) otherwise it will cause all nuisances like above and also will significantly slow down your program.
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
Bookmarks