Thank you so much. That was really helpful.
At the end of the day, a tree is just a tree, but I guess my previous experience with other languages played a trick or two on me this time, instead of being of help. That and the fact that QModelIndex() drives me to panic since I landed into the Qt view/model stuff as a whole some months ago :P
Right now, the code is in a state that I get output from the class into the view. That's a good starting point. I am not completely reliant about my index() and parent() method, but I am in the right track, at last.
In the right side of the image you can see the FtpFileSystemModel in action. Right now it can only show files. Hopefully it will learn to do some more stuff, given enough time
20140522.180439.jpg
Again, thank you![]()






Reply With Quote

Bookmarks