C++ (Qt)void QWidget::dragMoveEvent ( QDragMoveEvent * event ) [virtual protected]void QDragMoveEvent::accept ( const QRect & rectangle )
C++ (Qt)void Widget::dragMoveEvent (QDragMoveEvent * event){ QRect rect(50,50,50,50); event->accept(rect);} void Widget::dragEnterEvent(QDragEnterEvent* event){ event->accept();}
C++ (Qt)void EditorWidget::dragMoveEvent(QDragMoveEvent *event) {QRect rect(100,50,100,50); if ( event->answerRect().intersects(rect)) event->acceptProposedAction(); else event->ignore(); }