Hey @all,

for my Project I decided to subclass QGraphicItem and reimplement the paint function.
Qt Code:
  1. void MyItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
  2. // Draw the pixmap
  3. //painter->drawPixmap(...);
  4.  
  5. // Draw the item text
  6. painter->drawText(QRectF(-_pixmap.width(), 5, _pixmap.width(), 25), Qt::AlignHCenter, "Demotext");
  7. }
To copy to clipboard, switch view to plain text mode 

From now, when i move the drawn item, the text aren't repainted / updated. When i move the graphics item fast over the graphics scene, then there are only black fragments from the text, but no "Demotext".

What I'm doing wrong?

Best Regards
NoRulez