Problem solved, changed inheritance of Arrow from QGraphicsPathItem to QGraphicsItem, and added shape() method (I think I didn't forget anything else).