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 or QtNetworkAccessManager
Qt 6.11 is out! See what's new in the release blog

QtFtp or QtNetworkAccessManager

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 2 Posters 1.5k Views 2 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.
  • Z Offline
    Z Offline
    Zunneh
    wrote on last edited by aha_1980
    #1

    Hello guys, i'm working on project to download files from a server, so which class i need ? QtFtp or QTnetworkAcessManager ? and if it is QtFtp how can i include the class to QT5 ? thanks

    my english is average, please use simple words and try to be the most explicit, thank you

    K 1 Reply Last reply
    0
    • Z Zunneh

      Hello guys, i'm working on project to download files from a server, so which class i need ? QtFtp or QTnetworkAcessManager ? and if it is QtFtp how can i include the class to QT5 ? thanks

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

      @Zunneh

      See API Changes to Qt Network https://doc.qt.io/qt-5/sourcebreaks.html

      *The QFtp and QUrlInfo classes are no longer exported. Use QNetworkAccessManager instead. Programs that require raw FTP or HTTP streams can use the Qt FTP and Qt HTTP compatibility add-on modules that provide the QFtp and QHttp classes as they existed in Qt 4.
      *

      Personally I recommend for new implementations using QNetworkAccessManager directly. The source code referenced in the doc snippet is more compatibility IMHO.

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

      Z 1 Reply Last reply
      2
      • K koahnig

        @Zunneh

        See API Changes to Qt Network https://doc.qt.io/qt-5/sourcebreaks.html

        *The QFtp and QUrlInfo classes are no longer exported. Use QNetworkAccessManager instead. Programs that require raw FTP or HTTP streams can use the Qt FTP and Qt HTTP compatibility add-on modules that provide the QFtp and QHttp classes as they existed in Qt 4.
        *

        Personally I recommend for new implementations using QNetworkAccessManager directly. The source code referenced in the doc snippet is more compatibility IMHO.

        Z Offline
        Z Offline
        Zunneh
        wrote on last edited by
        #3

        @koahnig i will test it but can you tell me how to add Qt Ftp module ?

        my english is average, please use simple words and try to be the most explicit, thank you

        K 1 Reply Last reply
        0
        • Z Zunneh

          @koahnig i will test it but can you tell me how to add Qt Ftp module ?

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

          @Zunneh

          Checkout the original text in link given
          @koahnig said in QtFtp or QtAccessManagerNetwork:

          See API Changes to Qt Network https://doc.qt.io/qt-5/sourcebreaks.html

          This shall point to the source code. I had done way back with Qt 5.5 or so. With the source code you download also the guidelines AFAIR.

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

          Z 1 Reply Last reply
          2
          • K koahnig

            @Zunneh

            Checkout the original text in link given
            @koahnig said in QtFtp or QtAccessManagerNetwork:

            See API Changes to Qt Network https://doc.qt.io/qt-5/sourcebreaks.html

            This shall point to the source code. I had done way back with Qt 5.5 or so. With the source code you download also the guidelines AFAIR.

            Z Offline
            Z Offline
            Zunneh
            wrote on last edited by
            #5

            @koahnig and where to add it ? in the path directory ?

            my english is average, please use simple words and try to be the most explicit, thank you

            K 1 Reply Last reply
            0
            • Z Zunneh

              @koahnig and where to add it ? in the path directory ?

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

              @Zunneh

              You can keep it seperately as your library. There you would use in .pro INCLUDEPATH += and add the lib manually. I kept it seperately for my tests.

              I believe within the instructions you shall find also how to integrate with your Qt installations.

              Practically I got rid of QtFtp as fast as possible.

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

              Z 1 Reply Last reply
              0
              • K koahnig

                @Zunneh

                You can keep it seperately as your library. There you would use in .pro INCLUDEPATH += and add the lib manually. I kept it seperately for my tests.

                I believe within the instructions you shall find also how to integrate with your Qt installations.

                Practically I got rid of QtFtp as fast as possible.

                Z Offline
                Z Offline
                Zunneh
                wrote on last edited by
                #7

                @koahnig 0_1561976757897_ftp.png

                0_1561976765303_ftp2.png

                i trieed this one but always same error, in the header file (screen 2 ) i have to include all the path ? thanks

                my english is average, please use simple words and try to be the most explicit, thank you

                K 1 Reply Last reply
                0
                • Z Zunneh

                  @koahnig 0_1561976757897_ftp.png

                  0_1561976765303_ftp2.png

                  i trieed this one but always same error, in the header file (screen 2 ) i have to include all the path ? thanks

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

                  @Zunneh

                  Use '/' instead of '\' in typing path values in .pro. That makes life easier. '\' would be start of a continuation line in .pro files.
                  IMHO use linux notation on windows as well.

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

                  1 Reply Last reply
                  4
                  • Z Offline
                    Z Offline
                    Zunneh
                    wrote on last edited by
                    #9

                    Hey guys, i made the program to download file using QNetworkAccessManager, is it possible to download folder that contains file ? Thanks

                    my english is average, please use simple words and try to be the most explicit, thank you

                    1 Reply Last reply
                    0

                    • Login

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