Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QT 5.5 - Working on FTP

    General and Desktop
    qtftp qt 5.5.1 ftp
    2
    9
    2723
    Loading More Posts
    • 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.
    • djmassive
      djmassive last edited by

      Hello,

      If i don't want to use QFTP - how can i connect and make some things on FTP using QT 5.5.
      If there is no possibility - where i can find QTFtp that i can compile to working plugin on OS X.
      I found some sources on github, but there is no headers at all.

      Thank for any help.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        You can implement it yourself using QNetworkAccessManager but the QtFTP module is available at code.qt.io which is the official repository for Qt's sources and it builds on OS X with Qt 5.5.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • djmassive
          djmassive last edited by

          Thank You, but here i see exactly same files like in source that i found @ github.
          How can i compile this ?

          I know - simply question :-) There is no configure, no make file.... :-)

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            It's a Qt module, there's a .pro file in the top folder so:

            cd qtftp
            qmake
            make
            make install
            

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • djmassive
              djmassive last edited by

              Its so simple :-) no problems - module compiled successful.
              Thank YOU !!

              1 Reply Last reply Reply Quote 0
              • djmassive
                djmassive last edited by

                I've got error:
                QIODevice::write (QTcpSocket, "QFtpPI_socket"): device not open

                ftp_host, ftp_login, ftp_pass are valid variables with ftp account data.

                QFtp ftp;
                ftp.connectToHost(ftp_host, 21);
                ftp.login(ftp_login,ftp_pass);
                ftp.list();
                ftp.close();
                

                Why i've got this error ?
                Working on OSX.

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Do you have an event loop running ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • djmassive
                    djmassive last edited by

                    No.It is new empty project, where i want to get know how this module works, and how to use it.

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      By building and reading the documentation and taking a look at the example in the sources

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post