I have a weird problem with graphics scene. I have a somewhat complicated scene composed of several custom QGraphicsItem derived objects. The items are nested into a tree with 3 levels. One of the items derives from QGraphicsTextItem. When its parent is being dragged over the scene, the text item leaves artifacts as shown on the attachment. When the same text item is moved to a simpler test case and its parent is being dragged, it does not leave the artifacts anymore.
the implementation of the text item does not affect any of the boundingRect, shape, paint functions. I suspect that the problem is in one of the parent items. What might be the problem? How can the parent item affect the drawing of the child item?
Screen shot 2011-02-15 at 1.50.27 AM.png
Bookmarks