I have build a remote file list model to a QTreeWidget
now i can drag file from desktop & drop to QTreeWidget ++ upload on PUT Webdav method....
But now how i can drag from QTreeWidget & drop to desktop?
i muss fill a QClipboard ?
here is the method drop upload.....
Qt Code:
{ /* incomming data file upload to server */ if(event && event->mimeData()) { QStringList urlmixed; urlmixed.clear(); QList<QUrl> urlelist; if (data->hasUrls()) { urlelist = data->urls(); for ( int i = 0; i < urlelist.size(); ++i ) { if (gettyurl.isValid()) { qDebug() << "### shema " << shema; if (shema == "file") { urlmixed.append(localfileupsgo); } } } SendUpPutList(urlmixed); return; } } }To copy to clipboard, switch view to plain text mode
Bookmarks