title: how to animat a QPixmap in qt?
body: <p>if possible animated a QPixmap?in my program I have a QPixmap (image of super Mario).i want to animate it.i mean  it should go forward and jumping.it is hard for me to design shape of  super Mario again and prefer to use of image. </p>
  
  <pre><code>#ifndef MYQGRAPHICOBJECT_H
  #define MYQGRAPHICOBJECT_H
  #include &lt;QGraphicsObject&gt;
  #include &lt;QGraphicsView&gt;
  #include &lt;QGraphicsScene&gt;
  #include &lt;QGraphicsRectItem&gt;
  #include &lt;QPixmap&gt;
  #include &lt;QPropertyAnimation&gt;
  extern QPixmap super;
  class MyQgraphicObject : public QGraphicsObject
  {
  Q_OBJECT
  private:
   QPropertyAnimation* pro;
   QPixmap pi;
   public:
  explicit MyQGraphicObject(QGraphicsItem *parent = 0,QPixmap p= super);
  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
  QRectF boundingRect()const;
  signals:
  public slots:   
  };
  #endif // MYQGRAPHICOBJECT_H
  #include "myqgraphicobject.h"
  #include &lt;QGraphicsItem&gt;
  MyQGraphicObject::MyQGraphicObject(QGraphicsItem *parent, QPixmap p) :
  QGraphicsObject(parent),pi(p)
  {
   pro=new QPropertyAnimation();
  }
  QRectF MyQGraphicObject::boundingRect() const
  {
  }
  </code></pre>