title: Moving QGraphicsPixmapItem and getting itemChange events
body: <p>I have a <code>QGraphicsPixmapItem</code> that I move around <code>setFlag(QGraphicsItem::ItemIsMovable)</code>, I activated the <code>ItemSendsScenePositionChanges</code> flag on my item but the function <code>itemChange(GraphicsItemChange change, const QVariant &amp;value)</code> isn't called when I move my item around.</p>
  
  <p>Any sugestions?</p>
  
  <p>Here is my code for itemchange():</p>
  
  <pre><code>#include "graphicspixmapitem.h"
  
  GraphicsPixmapItem::GraphicsPixmapItem(QGraphicsItem *parent, QGraphicsScene *scene)
    : QGraphicsPixmapItem(parent)
  {
  
  }
  
  void GraphicsPixmapItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
  {
    //m_clicked_signal(this);
    //  emit clicked();
  }
  void GraphicsPixmapItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
  {
    //m_clicked_signal(this);
      emit clicked();
  }
  
  #include &lt;QDebug&gt;
  QVariant GraphicsPixmapItem::itemChange(GraphicsItemChange change, const QVariant &amp;value)
  {
      if (change == ItemPositionChange) {
              qDebug() &lt;&lt; "Position changed";
          }
      return QGraphicsItem::itemChange(change, value);
  }
  </code></pre>
  
  <p>and this is my code for setFlags:</p>
  
  <pre><code>QPixmap Trackinfo(":/images/ScreenContacts.png");
      buf = addPixmap(Trackinfo);
      buf-&gt;setPos(0, 40);
      buf-&gt;setFlag(QGraphicsItem::ItemIsMovable);
      buf-&gt;setFlag(QGraphicsItem::ItemSendsScenePositionChanges);
      buf-&gt;setCacheMode(QGraphicsItem::ItemCoordinateCache);
  </code></pre>