Hello.
I want to do a File Tree (like QTreeView does) but i want it to be custom. First it dont have any file, but when a file or a dir drops on it i want it to be added to root. Also, if the user want to delete one file from one dir that he added, he must be able to (oc without deleting the original file) and keeping the rest of files.
Example:
initialy:
<root>
<root>
To copy to clipboard, switch view to plain text mode
//add directory "test" which contains file1, file2 and dir1 (which also contains file3)
<root>
- test
file1
file2
- dir1
file3
<root>
- test
file1
file2
- dir1
file3
To copy to clipboard, switch view to plain text mode
//add file file4
<root>
- test
file1
file2
- dir1
file3
file4
<root>
- test
file1
file2
- dir1
file3
file4
To copy to clipboard, switch view to plain text mode
//delete file1
<root>
- test
file2
- dir1
file3
file4
<root>
- test
file2
- dir1
file3
file4
To copy to clipboard, switch view to plain text mode
//delete dir1
<root>
- test
file2
file4
<root>
- test
file2
file4
To copy to clipboard, switch view to plain text mode
If i use QTreeView Widget i must rewrite ModelIndex to make it custom?
Or any other ideas how to do it?
Thank you!
Bookmarks