How to connect to FTP and download file using Qt?

1.1k Views Asked by At

Toolbar for FTP

On the picture you can see my GUI for my test project. What I want to do is:

Enter a ftp-url in the line-edit, connect/disconnect to the FTP-server and when I am connected, load a file from the server (button on the left).

I have Qt 5.9 and I cant find anything to include QFtp.

How I can solve this?

1

There are 1 best solutions below

1
On

Please check QStringList QNetworkAccessManager::supportedSchemes() method output. Possible you will see ftp here and can use regular QNetworkRequest class for access to ftp.