I am building a kind of qtreewidget whch I can control the contents of a folder with drag and drop in my tree.
I looked at this answer for loading the content of a folder and setting icon for them. And then I used this answer for adding drag and drop, but the problem is if I drop an item on another item which is for a file the first item comes inside the second item. It means yo move a file in another file and that is impossible.
So I summarize my problem. I need to build a qtreewidget which I can control the content of my folder with drag and drop.
What should I do?