
Originally Posted by
anda_skoa
Is this a good idea?
As a side note: that setUrls() call doesn't make much sense, you are not filling the list anywhere, right?
I append the filename to it. Or is there a way to set just one Url directly?
urllist.
append(QString("file:"+filename
));
urllist.append(QString("file:"+filename));
To copy to clipboard, switch view to plain text mode
How do you reimplement startDrag() ?
I tried it this way?
void customtreeview::startDrag()
{
}
void customtreeview::startDrag()
{
}
To copy to clipboard, switch view to plain text mode
and put a qDebug in it, but it's never called.
Otherwise what you say make perfect sense, but out of ignorance I am still stuck with my workaround.
And model()->Data() just returns the filename without path. So it isn't much use to me either.
Bookmarks