Qt Code:
  1. class myItem :public QGraphicsEllipseItem
  2. {
  3. public:
  4. paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 )
  5. {
  6.  
  7. painter->drawText() // Draw you text
  8. }
  9.  
  10. };
To copy to clipboard, switch view to plain text mode 

Hope this helps