title: Qt: qgraphicsitem drag and drop
body: <p>I have a problem with Qt. I want to drag an image and use of <code>QGraphicsPixmapItem</code> and dragenterevent but it doesnt appear in the console ?
  but other function like   hoverEnterEvent work corectly???
  here is the code:
  please help?</p>
  
  <pre><code>class button : public QGraphicsPixmapItem
  {
  public:
      button(const QPixmap &amp;);
      button();
      void changepic( QPixmap,int ,int);
      void mousePressEvent(QGraphicsSceneMouseEvent*event);
      void dragenterEvent(QGraphicsSceneDragDropEvent *event){
  
          event-&gt;setAccepted(1);
         qDebug("drag");
      }
      void dropEvent(QGraphicsSceneDragDropEvent *event){
         qDebug("drop");
      }
  
      void hoverEnterEvent(QGraphicsSceneHoverEvent *event){
  
             // do something
         // this-&gt;setPos(this-&gt;x()+10,this-&gt;y()+10);
  
               qDebug("k");
  
             QGraphicsItem::hoverMoveEvent(event);
         }
      void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
  };
  </code></pre>