Thank you so much! I was able to get it working just by changing my overloaded paint() function to:
Qt Code:
  1. void MyTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
  2. {
  3.  
  4. QBrush brush(Qt::white);
  5. painter->setBrush(brush);
  6. painter->drawRect(0,0,70,35);
  7.  
  8. QGraphicsSimpleTextItem::paint(painter,option,widget);
  9.  
  10. }
To copy to clipboard, switch view to plain text mode