title: Slots with QGraphicPixmapItem
body: <p>I created a class that derives from <code>QObject</code> and <code>QGraphicsPixmapItem</code>, my goal is to display multiple different fire images to make a kind of gif so I use a Timer and the connect function, but my images do not display and I have this error:</p>
  
  <pre><code>QObject::connect: No such slot QObject::animation()
  </code></pre>
  
  <p>And this is my code</p>
  
  <pre><code>class Fire: public QObject,public QGraphicsPixmapItem
  
  {
  
  public:
   Fire: QObject(),QGraphicsPixmapItem(){
  
      }
  
  
  private:
  
      void display() {
  
               timer=new QTimer(this);
               imageFire&lt;&lt;(QPixmap(":/feu1.png"))&lt;&lt;(QPixmap(":/feu2.png"))&lt;&lt;(QPixmap(":/feu3.png"))&lt;&lt;(QPixmap(":/feu4.png"))&lt;&lt;(QPixmap(":/feu5.png"));
               connect(timer, SIGNAL(timeout()),this, SLOT(animation()));
               timer-&gt;start(1000);
  
              //image.load(":/feu1.png");
              //this-&gt;setPixmap(image);
  
  
      QPixmap image;
      QList&lt;QPixmap&gt; imageFire;
      QTimer *timer;
      int i;
  
  
  private slots:
      void  animation(){
         /* foreach (QPixmap pix, imageFire) {
              this-&gt;setPixmap(pix);
          }*/
  
          image=imageFire.at(i);
          this-&gt;setPixmap(image);
          i++;
  
          if(i==imageFire.size()){
              i=0;
          }
      }
  };
  </code></pre>
  
  <p>If I  understood correctly it's because <code>QGrpahicPixmapItem</code> doesn't inherited from <code>QObject</code>, So I tried to inherit my class Fire from <code>QGraphicsObject</code> but the thing is this class doesn't allow me to use the <code>setPixmap()</code> function!
  So how can I pass trough this problem while using the QGraphicPixmapItem class??</p>