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. How can i use QFtp on Qt5.5
Forum Updated to NodeBB v4.3 + New Features

How can i use QFtp on Qt5.5

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 3.0k Views
  • 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by victor wang
    #1

    HI, everyone:
    I installed Qt5.5 on my computer which is based on Linux.
    When i compile my program it can't find QFtp.
    I don't know what to do.

    Please help.

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @victor-wang
      Did you add header #include <QFtp> to it?
      And also did you include QT += network in .Pro file?
      For Qt5 and above QT += ftp.

      --Alles ist gut.

      V 1 Reply Last reply
      1
      • RatzzR Ratzz

        @victor-wang
        Did you add header #include <QFtp> to it?
        And also did you include QT += network in .Pro file?
        For Qt5 and above QT += ftp.

        V Offline
        V Offline
        victor wang
        wrote on last edited by victor wang
        #3

        @Ratzz
        Yes, i had inlude

        QT +=network
        QT += ftp
        

        but even though, it still can't find QFtp.

        RatzzR jsulmJ 2 Replies Last reply
        0
        • V victor wang

          @Ratzz
          Yes, i had inlude

          QT +=network
          QT += ftp
          

          but even though, it still can't find QFtp.

          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by
          #4

          @victor-wang
          can you show me your code?

          --Alles ist gut.

          V 1 Reply Last reply
          0
          • V victor wang

            @Ratzz
            Yes, i had inlude

            QT +=network
            QT += ftp
            

            but even though, it still can't find QFtp.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @victor-wang QFtp is not par of Qt5 any-more, you will need to build it from source.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            V 1 Reply Last reply
            2
            • RatzzR Ratzz

              @victor-wang
              can you show me your code?

              V Offline
              V Offline
              victor wang
              wrote on last edited by
              #6

              @Ratzz
              Sure, but i can't post all of it cause it's too many.

              0_1487913084773_1.png 0_1487913087690_2.png

              1 Reply Last reply
              0
              • jsulmJ jsulm

                @victor-wang QFtp is not par of Qt5 any-more, you will need to build it from source.

                V Offline
                V Offline
                victor wang
                wrote on last edited by
                #7

                @jsulm
                I just figure it out on internet.
                I had download the source already but i do not know how to do.
                Please help!

                jsulmJ 1 Reply Last reply
                0
                • V victor wang

                  @jsulm
                  I just figure it out on internet.
                  I had download the source already but i do not know how to do.
                  Please help!

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by jsulm
                  #8

                  @victor-wang In a terminal got to the directory where qtftp.pro file is located, call qmake there (the one from your Qt5.5), then call make and then make install. For make install you probably will need root if you install Qt from your Linux repository.
                  Alternative: in QtCreator open qtftp.pro file and build the project.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  V 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @victor-wang In a terminal got to the directory where qtftp.pro file is located, call qmake there (the one from your Qt5.5), then call make and then make install. For make install you probably will need root if you install Qt from your Linux repository.
                    Alternative: in QtCreator open qtftp.pro file and build the project.

                    V Offline
                    V Offline
                    victor wang
                    wrote on last edited by
                    #9

                    @jsulm
                    I got this error
                    0_1487914023489_1 (2).png

                    what should i do ?

                    jsulmJ 1 Reply Last reply
                    0
                    • V victor wang

                      @jsulm
                      I got this error
                      0_1487914023489_1 (2).png

                      what should i do ?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @victor-wang Image sharing is not working in this forum. Please just copy/paste the text.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      V 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @victor-wang Image sharing is not working in this forum. Please just copy/paste the text.

                        V Offline
                        V Offline
                        victor wang
                        wrote on last edited by
                        #11

                        @jsulm
                        I had solve the problem from your step.
                        I think the reason why i will get the error is because the path of the compiler i didn't set well.
                        Thanks for your help!
                        Appreciate!

                        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