PDA

View Full Version : How to Drop the data (folder) onto the Desktop from Our application.



vaibhav
2nd December 2010, 14:37
Hi,
I have QTreewidget to which i have enabled the dragged drop events .

I am able to drag the data from the Widget(say folder) whch i want to drop onto desktop so that similar folder is created onto the desktop.

I am unable to implement the above requirement .

Any help would be appreciated.
Thanx.

janorcutt
2nd December 2010, 14:47
to drop a file or folder onto the desktop you would probably need to reimplement a QStandardItemModel specifically the mimedata and mimetypes functions, so qt and the os know what it is you are dragging and dropping.