QtFtp | this is ftp class , base on QT | FTP library
kandi X-RAY | QtFtp Summary
kandi X-RAY | QtFtp Summary
this is ftp class,base on QT 5.2+. ftp→put() //上传 ftp→get() //下载 ftp→list() //列出目录.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of QtFtp
QtFtp Key Features
QtFtp Examples and Code Snippets
Community Discussions
Trending Discussions on QtFtp
QUESTION
I want to use FTP in my current project, but since Qt5 ftp isn't available (only as add-on).
I downloaded the sources from here: https://github.com/qt/qtftp In Qt's forum, I found a instruction how to use it:
- Open Console in the qtftp-folder
- Generate the headers:
cd qtftp
,/bin/syncqt.pl -version 5.2.0
- Run qmake
- Run make (mingw32-make)
- Run make install (mingw32-make install)
- Add
QT += ftp
in my .pro-file - Run qmake on my project
- compile my project.
So, I wanted to try these steps, but it fails on the first step, because the syncqt.pl cant be found, but I looked in the Qt-directory, and the file is there.
Anybody has an idea, how to fix/solve this? I am using Qt5.9.1
...ANSWER
Answered 2018-Jan-04 at 06:47If you have downloaded the portable version of strawberry-perl like me, just extract .zip somewhere on your disk. After that, open the portableshell.bat (it should open a command prompt window) After that, you can type in the code of step 2, and don't forget to add the -version argument.
Then you can continue with step 3, and everything should work without any problems.
QUESTION
I'm trying to install qftp but it does not really work. I first recovered the sources on github. Then I copied the sources to Qt's src folder and renamed the "qtftp" folder, then run the Perl syncqt.pl file to generate the headers and others. Then I did a qmake, then a make.
I then copied the QFtp folder created in the qtftp include folder into the Qt include folder. Then in the .pro file of my project, I made an include of the qt_ftp.pri file created in the qtftp folder and I added QT + = ftp. I did a qmake, everything is fine. #include does not output any error.
The self completion completes nickel for Qftp. But when compiling my project I have an error of the type "undefined reference to 'Qqft :: qftp (Qobject *)". I'm stuck, I do not know what to do.
...ANSWER
Answered 2017-Dec-10 at 23:06undefined reference to 'Qqft :: qftp (Qobject *)
means that the linker (for some reason) cannot resolve the function call to qftp
you made in your code.
- Maybe adding
QT += ftp
does not cause QMake to add the QFTP-Library to the linker call in your Makefile. Have a look at your makefile iflibqftp.so
(or, if you are using Windows:qftp.dll
) or something like this is present. - If the call to
qftp
does not come from your own code but from some other library you're using, it's possible that the order of libraries in the linker call is wrong. If a linker finds an unresolved symbol in library A, it only looks for it in the libraries mentioned after A in the linker call. If this is the case you will have to find out how you can change the order of libraries in the linker call generated by qmake.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install QtFtp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page