Results 1 to 3 of 3

Thread: FTP recursive treeWidget

  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question FTP recursive treeWidget

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: FTP recursive treeWidget

    Quote Originally Posted by Aji Enrico View Post
    Can I just use QFtp and QtreeWidgetItem
    to recursively produce a tree list that QtreeWidget can show properly?
    Yes, this should be enough.

  3. #3
    Join Date
    Mar 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: FTP recursive treeWidget

    Thanks for the reply

Similar Threads

  1. expand a treeWidget
    By mattia in forum Newbie
    Replies: 6
    Last Post: 6th December 2007, 13:24
  2. How to sort the treeWidget item according to size and date
    By santosh.kumar in forum Qt Programming
    Replies: 3
    Last Post: 23rd October 2007, 10:32
  3. How to set the sizehint for treeWidget
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2007, 11:35
  4. By default TreeWidget width setting in DockWidget
    By santosh.kumar in forum Qt Programming
    Replies: 0
    Last Post: 31st May 2007, 05:55
  5. Replies: 2
    Last Post: 29th May 2007, 13:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.