Generic QTreeView with Drag & Drop
Solved
General and Desktop
-
Hi Everybody,
I am looking for a generic solution to QTreeView with Drag & Drop. Important features are:
- list item inner Drag & Drop (not from another widget or an external application)
- if the item A is dropped on the item B, A is moved as a child of B
- the TreeView shows items A, B and C: if I drag A item between B and C, the order becomes B, A and C
Is there any solution which satisfies the above requirements?
BR,
Peter -
Hi,
You can find the basics in the Model View Programming chapter of Qt's documentation.