Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Get file info when dropping a file in DropArea

$
0
0
Hi all, I have a DropArea in my QML app and I would like to drag and drop an external file in my app (in order to get the file path). The drop event works but I cannot find how to get file data from drop/drag event … Any idea ? Rectangle {         width: 300;         height: 300;           DropArea {             id: dropArea;             anchors.fill: parent;                         onDropped: {                 console.log ("onDropped");                 console.log(drag);                 console.log(drop);             }         }     }

Viewing all articles
Browse latest Browse all 18427

Trending Articles