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. QtFtp and QtHttp "compatibility add-ons", for QHttp, and QFtp classes in Qt 5

QtFtp and QtHttp "compatibility add-ons", for QHttp, and QFtp classes in Qt 5

Scheduled Pinned Locked Moved General and Desktop
25 Posts 12 Posters 34.0k Views 4 Watching
  • 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.
  • J Offline
    J Offline
    jelicicm
    wrote on last edited by jelicicm
    #15

    @koahnig
    Thank you very much for your reply! Not sure how I managed to be stupid like that :)

    I included two .h and two .cpp files from /src folder in my project, wrote #include lines for two .h files and it compiled nicely!

    Now, I have to ask someone for an example code of printing out files located on FTP server.

    So far I have

    '''QFtp *ftp=new QFtp();
    QObject::connect(&ftp, SIGNAL(listInfo(const QUrlInfo &)), &ftp, SLOT(printout(const QUrlInfo &)));

    ftp->connectToHost(address);
    ftp->login("ars2014","65!tqwGfr0*8");
    ftp->list();
    ftp->close();

    And, in qftp.h and qftp.cpp I added printout>
    void QFtp::printout(const QUrlInfo &info) {
    qDebug()<<info.name().toStdString();
    }

    If it maters in any way its just a console application.

    Error I get is> error: no matching function for call to 'QObject::connect(QFtp**, const char*, QFtp**, const char*)'
    QObject::connect(&ftp, SIGNAL(listInfo(const QUrlInfo &)), &ftp, SLOT(printout(const QUrlInfo &)));

    Does someone know what is happening?

    Thanks.

    EDIT: Figured it out, I have cannot use &ftp when using connect, only just ftp. Duhh

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jlau
      wrote on last edited by
      #16

      The qftp sources are no longer available at https://qt.gitorious.org/qt/qtftp . Any one who can help me get the source?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #17

        Hi and welcome to devnet,

        Qt's sources official repositories is on code.qt.io. For QFtp it's here

        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
        0
        • J Offline
          J Offline
          jlau
          wrote on last edited by
          #18

          thanks a lot!

          1 Reply Last reply
          0
          • K koahnig

            It is merely a question of how you like to integrate the add-on's code.
            You can completely keep it completely separate from Qt 5 and compile as a separate dll.
            Personally, I consider this as a cleaner approach, since you do not mess with the rest of Qt and leave it in its "original" state.
            You would include the supplied header from where you place it and you have to add the required steps as for every lib of your own.

            A Offline
            A Offline
            avishkaperera
            wrote on last edited by
            #19

            @koahnig
            can you guide me on how to compile the qftp module as a separate library. I tried adding the module to my project. it works on windows but when I try running it on linux it doesn't work. my guess is I have to install it again on linux for it to work.

            K 3 Replies Last reply
            0
            • A avishkaperera

              @koahnig
              can you guide me on how to compile the qftp module as a separate library. I tried adding the module to my project. it works on windows but when I try running it on linux it doesn't work. my guess is I have to install it again on linux for it to work.

              K Offline
              K Offline
              koahnig
              wrote on last edited by
              #20

              @avishkaperera

              You need to donwload the sources from git here as already noted by SGaist.

              When you have downloaded the files you have project files for Qt creator to load and create the libraries.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • A avishkaperera

                @koahnig
                can you guide me on how to compile the qftp module as a separate library. I tried adding the module to my project. it works on windows but when I try running it on linux it doesn't work. my guess is I have to install it again on linux for it to work.

                K Offline
                K Offline
                koahnig
                wrote on last edited by koahnig
                #21

                @avishkaperera

                Apparently you need nowadays to use "git" for downloading the whole stuff at once. Before there was a possibility to download all as a complete I believe.

                Are you familiar with git?

                Otherwise can download file by file, which is not so bad, but takes a bit longer.

                [edit:koahnig; Post corrected]

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #22

                  Gitorious was a service like Gitlab, Bitbucket or Github which provide a nice graphical front-end to git itself and usually more tools to handle tasks like bug reports, merge request and nowadays continuous integration.

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

                  K 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Gitorious was a service like Gitlab, Bitbucket or Github which provide a nice graphical front-end to git itself and usually more tools to handle tasks like bug reports, merge request and nowadays continuous integration.

                    K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #23

                    @SGaist
                    Thanks for correction. You are right. "git" is already a complete English word. Was not careful enough to distinguish between git and gitorious.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • A avishkaperera

                      @koahnig
                      can you guide me on how to compile the qftp module as a separate library. I tried adding the module to my project. it works on windows but when I try running it on linux it doesn't work. my guess is I have to install it again on linux for it to work.

                      K Offline
                      K Offline
                      koahnig
                      wrote on last edited by
                      #24

                      @avishkaperera

                      We had a side discussion in another part of the forum.
                      There is also a place to download QFtp as an archive for those not wanting to bother with git. Only drawback is that some minor fixes are missing.

                      Vote the answer(s) that helped you to solve your issue(s)

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mjsbbs
                        wrote on last edited by mjsbbs
                        #25

                        I found this discussion to be very helpful in my attempt to install QFtp, including the steps listed by julrich, and the download location provided by koahnig. I prepared a folder named "QFtp" under "C:\Qt\5.7\mingw53_32\include", which I put the unzipped files inside. I did receive an error, "Project ERROR: Missing CMake tests." while trying to use mingw32-make, but found discussion here which solved the problem (by creating the folder "cmake" under the "\tests\auto" sub folder.)

                        • Mike
                        1 Reply Last reply
                        1

                        • Login

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