#include "droparea.h" #include #include #include DropArea::DropArea(QQuickItem *parent) : QQuickItem(parent), m_accepting(true) { setAcceptingDrops(m_accepting); } //void DropArea::dragEnterEvent(QGraphicsSceneDragDropEvent *event) //{ // event->acceptProposedAction(); // setCursor(Qt::DragMoveCursor); //} //void DropArea::dragLeaveEvent(QGraphicsSceneDragDropEvent *event) //{ // unsetCursor(); //} //void DropArea::dropEvent(QGraphicsSceneDragDropEvent *event) //{ // qDebug("File!"); // QList list = event->mimeData()->urls(); // for(int i=0; i list = event->mimeData()->urls(); for(int i=0; i