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