Change the boundingRect() implementation. It is the one deciding about coordinates.