Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, November 2007
QTreeWidget (Qt 4.3) - how to handle custom drag/drop?


Message 1 in thread

How is one supposed to implement the back-end side of a drag/drop 
operation within the tree widget? I'd like the QTreeWidget to do the 
front-end side of it - ie. managing the visual part of the drag/drop, 
but let me rearrange the items internally once the "drop" happens. I 
don't want it moving the items around.

Also - there seems to be (at least one) bug. If I override 
supportedDropActions() to only return Qt::MoveAction, then no drag 
happens at all. It seems it only starts up if CopyAction is also 
returned. But I don't want to copy the items - just move them.

Rather confusing.

-- 
 [ signature omitted ]