Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. DropEvent(QDropEvent *event) is not getting called even after setting setAcceptDrop(true) in Phonon::VideoWidget
Qt 6.11 is out! See what's new in the release blog

DropEvent(QDropEvent *event) is not getting called even after setting setAcceptDrop(true) in Phonon::VideoWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 670 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    p_kumar
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved