Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    1
    1
    482
    Loading More Posts
    • 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
      p_kumar last edited by

      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 Reply Quote 0
      • First post
        Last post