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