Qt 5.2.0 ftp and QNetworkAccessManager

依然范特西╮ 提交于 2019-12-11 08:19:23

问题


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?


回答1:


QNetworkAccessManager doesn't support that




回答2:


Although it is recommended to use QNetworkAccessManager as much as possible, you always fall back to the QtFtp add-on as follows:

QT += ftp

Then, you will be able to use the mkdir method of the QFtp class.



来源:https://stackoverflow.com/questions/22250898/qt-5-2-0-ftp-and-qnetworkaccessmanager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!