Results 1 to 2 of 2

Thread: Qftp example code question ... hello everyone

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Qftp example code question ... hello everyone

    Hi there I'm new to the group and started playing with Qt last week, its pretty impressive. As a test I am modifying the Qftp example code delivered with Qt4.3.3 to connect to a non Unix system who's return from the ftp->list(); function can not be parsed by the QUrlInfo class to populate the QTreeWidgetItem. Anyone got any ideas how I can fake it out and parse the ftp->list() output manually ?

    Any help appreciated, John

  2. #2
    Join Date
    Jan 2008
    Posts
    26
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default Re: Qftp example code question ... hello everyone

    Unfortunately, there is no simple solution.
    QFtp supports only Unix & DOS style FTP servers and doesn't provide any way to extend its capabilities in this area by subclassing or anything else.
    I see only 2 possibilities:
    1. Modify Qt sources at network/qftp.cpp adding your own parsing method and changing QFtpDTP's parseDir() to detect your special server and use that method in this case.
      Then your application will be incompatible with standard Qt (network) library and you will have to provide your version with it or build it statically.
    2. Write your own ftp client.

    First one is definitely a lot faster approach.

Similar Threads

  1. Question about qvector.h code of Qt 4
    By karapas in forum Qt Programming
    Replies: 6
    Last Post: 29th August 2007, 12:27
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. Example code and metaObject question
    By bruccutler in forum Newbie
    Replies: 1
    Last Post: 12th January 2007, 18:34
  4. a question conerning code in main.cpp
    By nass in forum Qt Programming
    Replies: 1
    Last Post: 19th September 2006, 16:55
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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
  •  
Qt is a trademark of The Qt Company.