How to move items in a qtreewidget?
Unsolved
General and Desktop
-
QTreeWidget is already implemented to drag & drop.
You can just enable that bysetDragDropMode(QAbstractItemView::InternalMove)
.
After that all the items with Qt::ItemIsDragEnabled / Qt::ItemIsDropEnabled flag will be able to be dragged / dropped.
But it is not well controlled. For example, you cannot limit a item to be moved to only the same level. -
Hi,
Why do you need that information for ?