problem with qftp



  • hi,

    i'm just testing around with qtftp in qt5.7. I've downloaded the sources and just included them into my project for testing. Everything builds fine but when i'm trying connectToHost(..) this error appears:

    "QIODevice::write (QTcpSocket, "QFtpPI_socket"): device not open"

    The ftp object is only used in the qt event loop.

    Any ideas what the problem is?

    Thanks in advance.


  • Moderators

    @ck_ee Can you show your code?


  • Moderators

    @ck_ee

    First of all QFtp is deprecated. The source is only for compatibility of application based on previous version. The better is approach is using directly QNetworkAccessManager

    IMHO the message "device not open" is clear.
    Did you open the device?
    If so, did you check the response and the device has been really opened?



  • @ck_ee qftp is also incompatible with some ftp-severs, I run into that trying to connect to a WinCE FTP server

    I would suggest a 3-Party cross plattform FTP-lib, libcurl comes to mind


  • Moderators

    @J.Hilk said in problem with qftp:

    @ck_ee qftp is also incompatible with some ftp-severs, I run into that trying to connect to a WinCE FTP server

    I would suggest a 3-Party cross plattform FTP-lib, libcurl comes to mind

    Interesting. Out of curiosity, did you do some investigations on this or simply switch to another lib?



  • @koahnig Ower supplier changed some of it's hardware, and told me proudly : "Everything is better, plus a new OS. WinCE".... :-(

    It was an old project, and I spend about a day trying to make it work with qftp. Than I switch to QNetworkAccessManager . The rudimentary push/get function that class offeres was enough in that particular case


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.