I don't know. Being new to Qt this what I did. Let me check the QGraphicsItem.