Questions tagged [qftp]

The QFtp class, part of the Qt framework, provides an implementation of the client side of FTP protocol.

The QFtp class provides a direct interface to FTP that allows you to have more control over the requests. However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API.

22 questions
3
votes
1 answer

How to convert a cv::mat header and data part into a single qbytearray?

I want to use Qftp module of Qt 4.8.1 to send opencv images to a FTP server. I wrote the following code: ftp = new QFtp(this); //ftp initilization . . . . // cv::Mat…
Dimitry
  • 81
  • 7
3
votes
2 answers

error in #include what should i do

I want to use ftp from my Qt project. But when I add #include in the program and run the compiler says: "error: QFtp: No such file or directory".
Ismael
  • 37
  • 1
  • 5
2
votes
2 answers

Qt 4.7 - How to iterate through files in an FTP directory

I have a program in which I have a constant path for an ftp directory. I have a function that needs to access that directory and do some operations on the files within. Before, there was only ever one file in this directory and it always had the…
thnkwthprtls
  • 3,287
  • 11
  • 42
  • 63
2
votes
2 answers

Not being able to execute ftp ConnectToHost in Qt

#include #include #include "test.h" #include "ui_test.h" #include int main() { QApplication a(argc, argv); Test w; ftp.connectToHost("192.168.26.129", 21); w.show(); return a.exec(); } I am…
user3110438
  • 95
  • 1
  • 7
2
votes
1 answer

"error: within this context" Installing QFtp in Qt 5

I'm new in developing with Qt Creator 2.8.1 (Qt 5.1.1). To implement an application based on ftp, I searched and found that to use QFtp is necessary to install it in current Qt version. So I downloaded it from https://qt.gitorious.org/qt/qtftp/.…
Leo
  • 43
  • 1
  • 8
1
vote
1 answer

Qt, QCoreApplication and QFtp

I want to use QFtp for the first time and googled a lot to find out how it should be used. This, among others is a typical example: #include #include #include int main(int argc, char ** argv) { QCoreApplication…
MichaelW
  • 1,328
  • 1
  • 15
  • 32
1
vote
2 answers

QFtp Get never emits commandFinished()

I am currently facing a weird problem concerning QFtp. I want to download a bunch of files from a FTP server but when I come to some point, after downloading x files on y, the ftp->get() command is done, the file is filled, but there is no emission…
Karalix
  • 141
  • 11
1
vote
2 answers

Qt 5.2.0 ftp and QNetworkAccessManager

I need to be able to create directories on my ftp server. I know that there's no QFtp in the 5.2.1 qt, so how do I mkdir with QNetworkAccessManager?
Hina Kagiyama
  • 95
  • 1
  • 9
1
vote
1 answer

QFtp won't work

I feel like I'm probably missing something very easy here, but I'm at a loss to figure out what. I have a C++ function (with Qt 4.7) where I need to access the files on an FTP server. To do this, I have the following set up: QString source =…
thnkwthprtls
  • 3,287
  • 11
  • 42
  • 63
1
vote
1 answer

Download a directory with QFtp

I want to download all the files of a directory in the server. So, I do: _ftp->list("myDirectory/"); I connect the signal listInfo, and I implemented the slot like this: void manageFTP::on_listInfo(QUrlInfo info) { if (!info.isDir()) { …
federem
  • 299
  • 1
  • 6
  • 17
0
votes
1 answer

How to fix 'LINK : fatal error LNK1181: cannot open input file 'Qt5Ftp.obj''?

I use Qt5.12.0, Qt Creator 4.8.0. So it doesn't contain QFtp but I need to use it. So I follow the way I found on the Internet, I put the .h, .lib, .prl, .dll files of Qt5Ftp to the corresponding directories in 'Qt\Qt5.12.0\5.12.0\msvc2017_64'. Then…
Yadid
  • 31
  • 4
0
votes
1 answer

QFtp not sending packets in wireshark

I'm learning about using QFtp. I'd like to connect to a remote ftp server and list its content. This what I wrote so far: // libftp.cpp #include "libftp.h" libFTP::libFTP(QObject *parent) : QObject(parent) { } void libFTP::open(QString…
Marco Frau
  • 109
  • 1
  • 1
  • 11
0
votes
1 answer

QFtp download location issue

I just wrote tiny ftp client using Qt. The problem is when I download, the ftp->get() command downloads the file to the default location. I'd like to define a path where the downloaded file will go. This is my DownloadFile method: QString fileName =…
kaycee
  • 1,199
  • 4
  • 24
  • 42
0
votes
2 answers

Why does QtNetwork.QFtp.get download fail in a for-loop for multiple files?

I am trying to download multiple files from a ftp site using a for-loop. The following code seems to work only for the first 2 files in the loop before the python.exe shutdown window pops up. Two downloaded files are perfect, but the 3rd downloaded…
Curiosity
  • 31
  • 4
0
votes
0 answers

Qt connecttohost command showing connection refused from remote host

I am running an application in WEC 7 and trying to connect to remote system, and I am using QFtp for transferring some data. When I try to connect to remote host using connecttohost, I am able to find the host but the connection is not successful…
1
2