Home > Back-end >  Qt drag-and-drop implementation issues
Qt drag-and-drop implementation issues

Time:10-06

Qt in implement drag-and-drop function demo, the rewriting of the event handler is different, how do I determine which, rewrite such as implementation from the desktop to my application program implements only dragEnterEvent and dropEvent, and implementation of an application program of two listWidget item drag and drop, has rewritten the mousePressEvent/mouseMoveEvent event handler, dropEvent and dragEnterEvent/dragMoveEvent 5, why don't the previous rewrite the mouse event handler? After a if you don't rewrite the mouse event handlers can't drag? Pray god give directions!
  • Related