yes, I stumbled upon thosw two as well.
I couldn't believe that I have to subclass so many classes just to provide drag&drop.
I got it working by just subclassing QMimeData and implementing another member variable with that pointer, was the easiest way - drag&drop works now as expected.
In meantime I will change the TreeWidget to a TreeView and create a proper Model underneath all of it - this seems to help me. But I thought I could get around that ;-)
in some things Qt is little straightforward. You have to define so many things yourself.
I was used to Delphi/Pascal, things are MUCH easier there.
But yes, in the end in Qt the approach is cleaner - IF you manage it...
thanky anyway,
Christian
Bookmarks