View Full Version : a question about drag treewidgetItem
Alina
15th March 2006, 07:59
I want to drag treewidgetItem .so I used startDrag() and dragMoveEvent(), when I pressed and draged a item, I found startDrag() has been called. but dragMoveEvent() did not been invoked?
zlatko
15th March 2006, 08:23
show you code pls
jpn
15th March 2006, 08:40
I want to drag treewidgetItem
If you want to drag and drop items inside a QAbstractItemView derivate, have you noticed that there is a ready solution for that? :)
All you need is something like this:
tree->setAcceptDrops(true);
tree->setDragEnabled(true);
tree->setDropIndicatorShown(true);
This works unless you've got more complicated items in your tree, like items containing widgets or so..
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.