The QtFtp library is needed as QNetworkAccessManager
currently does not support needed functionality. E.g. QNetworkAccessManager
only use binary transfer mode. In addition, there is no support for any commands other than get and put.
Porting QFtp in Qt4 to Qt5 using QNetworkAccessManager
-
20-07-2023 - |
Question
Instead of QFtp
in Qt4.8.2 I am now in the process of porting to QNetworkAccessManager
in Qt5.2.1 etc.
I have the following questions:
Is it possible to port
QFtp::rawCommand("SITE UMASK 22");
to a solution based onQNetworkAccessManager
?How do I specify transfer type using
QNetworkAccessManager
? InQFtp
it is specified as an argument in e.g. intQFtp::put(QIODevice* dev,const QString& file,TransferType type = Binary)
?- Is it possible to port
int QFtp::rename(const QString & oldname,const QString & newname)
toQNetworkAccessManager
?
Looking at Qt code to get list of files from ftp server using QNetworkAccessManager question on Qt 5.0, makes me think that I need to install the compatibility libraries to make the migration.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow