DropEvent(QDropEvent *event) is not getting called even after setting setAcceptDrop(true) in Phonon::VideoWidget
-
Hi,
I have added phonon::VideoWidget in QGraphicsScene/View and have set the setAcceptDrop(true) for phonon::VideoWidget.
I have created a class which is inherited from QGraphicsView and have overridden below events function:@ virtual void dropEvent ( QDropEvent * event );
virtual void dragEnterEvent ( QDragEnterEvent * event);
virtual void mouseMoveEvent ( QMouseEvent * event);
virtual void mousePressEvent ( QMouseEvent * event);
virtual void dragLeaveEvent ( QDragLeaveEvent * event );
virtual void dragMoveEvent ( QDragMoveEvent * event ); @Also set setAcceptDrop(true) in this class too.
I am receiving all events(mentioned above) except* dropEvent(QDropEvent * event).* dropEvent (QDropEvent *) is getting called if I am adding any other QGraphicsItem instead of Phonon::VideoWidget.
QT Version : 4.8.5
OS : Windows