Solved Generic QTreeView with Drag & Drop
-
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 -
@SGaist thanks for your reply.
I found a working solution here: Full drag and drop support in QTreeView.
-
Hi,
You can find the basics in the Model View Programming chapter of Qt's documentation.
-
@SGaist thanks for your reply.
I found a working solution here: Full drag and drop support in QTreeView.