Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] How to do an FTP client with Qt5, what classes to use?
QtWS25 Last Chance

[SOLVED] How to do an FTP client with Qt5, what classes to use?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 20.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VioletaCalvo
    wrote on last edited by
    #1

    Hi all!

    I have looking for all forums related to FTP and Qt5, I don't know yet why Qt team recommend QNetworkAccessManager with FTP. If I am right, with QNetworkAccessManager you can only upload and download files, but not delete or list files in a directory (what I need to do), or other FTP features.
    QFtp is deprecated in Qt5 and Qt team does not recomend to use this class, but I found that people likes it and continues using it.

    Should I use QNetworkAcessManager for uploading and downloading FPT files, and other class for deleting and listing files? Do I need use QTcpSocket for deleting and listing FTP files? What is the way to go?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      Hi and welcome to devnet!

      [quote author="katu" date="1409038385"]
      Should I use QNetworkAcessManager for uploading and downloading FPT files, and other class for deleting and listing files? Do I need use QTcpSocket for deleting and listing FTP files? What is the way to go?[/quote]

      You can use QNetworkAccessManager for download/upload. See "example":http://qt-project.org/doc/qt-5/qtnetwork-download-example.html

      There is also a separate "QtFtp":https://github.com/qtproject/qtftp module that you can build yourself.

      Qt-project folks "recommend":http://qt-project.org/doc/qt-5/sourcebreaks.html#changes-to-qt-networkto to use QtFtp if you need real FTP.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VioletaCalvo
        wrote on last edited by
        #3

        Thank you andreyc!!! This is what I was looking for!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved