From 9b7b54f72278249984565d67ebac6b2700c3d002 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Wed, 2 Sep 2009 16:17:40 +0200 Subject: Fix repainting artifacts in Stickman example Graphics view now requires that you set a flag to get notifications about geometry changes. We need these changes to make sure the bounding rectangle of the parent item is up-to-date. Reviewed-by: Leo Task number: 258495 --- examples/animation/stickman/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/animation/stickman/node.cpp b/examples/animation/stickman/node.cpp index 51224bb..69ff906 100644 --- a/examples/animation/stickman/node.cpp +++ b/examples/animation/stickman/node.cpp @@ -50,6 +50,7 @@ Node::Node(const QPointF &pos, QGraphicsItem *parent) : QGraphicsItem(parent), m_dragging(false) { setPos(pos); + setFlag(QGraphicsItem::ItemSendsGeometryChanges); } Node::~Node() -- cgit v0.12