PDA

View Full Version : FTP recursive treeWidget



Aji Enrico
4th April 2008, 13:14
Hi all

This is actually my first post on the forum :)

I've searched the forum but did not find a solution, or a "how to" hint.
What I want to do is a ftp listing on a server and have the file and directory struction
in place, in a treeWidget.

What type of Qt classes do I need to use in order to get a tree view of a ftp server
with both folders and files? I guess I need to do some recursive programming but
what kind of, type of list classes do I need? Can I just use QFtp and QtreeWidgetItem
to recursively produce a tree list that QtreeWidget can show properly? or do I need a
"middleman" class to handle the recursive part like Qlist or QlistWidgetItem?

I'm new to Qt and the documentation does not give me a hint on what to use where.
I'm trial and error kind of guy so I will manage somehow but I would really appreciate
to get a hint on how to approach such a task :)

Thanks

jacek
10th April 2008, 17:01
Can I just use QFtp and QtreeWidgetItem
to recursively produce a tree list that QtreeWidget can show properly?
Yes, this should be enough.

Aji Enrico
12th April 2008, 11:26
Thanks for the reply