QFtp *ftp = new QFtp();ftp->connectToHost(my_ip,21);ftp->login();ftp->cd("directory");QFile file(my_file);if (!file.open(QIODevice::WriteOnly | QIODevice::Unbuffered)) exit(1);ftp->get("file", &file);ftp->close();