hello, I overrided the paint() in the class QGraphicsTextItem
the Code
Qt Code:
  1. void Tag::paint(QPainter *item,const QStyleOptionGraphicsItem *option,QWidget *widget)
  2. {
  3. QRectF rect = boundingRect();
  4. item->drawRect(rect);
  5. }
To copy to clipboard, switch view to plain text mode 

but the rect only display the top and left frame lines
the bottom and right frame lines disappear

thanks