wagmare
27th April 2014, 13:41
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.
Im using qt-4.8.4 in windowa 7.
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.
Im using qt-4.8.4 in windowa 7.