Example #1
0
 // Accept all actions, but deal with them separately later.
 // ! [0]
 protected void dragEnterEvent(QDragEnterEvent event) {
   event.acceptProposedAction();
 }
Example #2
0
 // ! [3]
 protected void dragEnterEvent(QDragEnterEvent event) {
   if (event.mimeData().hasFormat("text/plain")) event.acceptProposedAction();
 }