Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Future of QFtp or QNetworkAccessManager
rakor last edited by
I would like to switch from Qt4.8 to 5.1 (or 5.2) in near future. I have a lot of ftp-transfers which were done by QFtp, which ist deprecated in Qt5.x. So I implemented the transfers using QNetworkAccessManager.
This works well, but I also need to browse the filelist on the server. As far as I know there is no way to do so using QNetworkAccessManager (with QFtp this was possible).
Will QFtp be included into Qt5 again (I know there is a gitorious with it) or will QNetworkAccessManager be pushed to support filelists fetching?
How could I implement this at the moment? Do I have to code all stuff by myself using sockets?!
i'm not sure if it works, but if it does you can just copy the sources to your project and keep using it. Keep the LGPL licensing issues in mind. Probably best would be to compile QFTP as a DLL and use it in your project.
Alternatively you can use a 3rd-party C/C++ lib for FTP transfer.
But QNetworkAccessManager doesn't support the whole FTP protocol and probably never will be (at least in Qt 5)...
QFtp design is considered to be flawed, there are no plans to bring it back to mainline Qt. Qt Project is happy to receive contributions, though, so if anybody ever rewrites QFtp, or creates a new one from scratch, it has a high probability of being accepted as a playground project and then being integrated into upstream (if it is good enough, that is).