import QtQuick 2.11
import QtQuick.Controls 2.4
Rectangle
{
width:640
height:480
color:"#cfcfc0"
DropArea
{
id: droparea
anchors.fill: parent
property bool hasUrls: false
enabled: true
onDropped:
{
if(drop.hasUrls)
{
var files = drop.urls
console.log("drop files:",files)
}
}
onEntered:
{
console.log("extered.")
}
}
}