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