0

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?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
  • 2
    Please provide a [*minimal, reproducible* example](https://stackoverflow.com/help/minimal-reproducible-example). It can be done, but we need to understand how you've implemented the tree widget so far. – musicamante Mar 11 '20 at 13:01
  • I editted the second "this" to the second link. read these two links to understand what am I saying. But I want to edit the second link to can copy and paste files too. – Mohammad Armin Niknami Mar 11 '20 at 13:11
  • 1
    You might have applied some changes to those examples, and we cannot "imagine" how you implemented them. Provide an MRE. – musicamante Mar 11 '20 at 13:17

0 Answers0