qt能否直接从ftp服务器上读取文本文件内容?

qt能否直接从ftp服务器上读取文本文件内容?,第1张

用QFtp应该可以做到吧, 摘自Qt的帮助文档, QFtp::get()时将次二哥参数设置为0,之后收到 readyRead()后可以通过read()或readAll()读取到内存里。
int QFtp::get ( const QString & file, QIODevice dev = 0, TransferType type = Binary )
If dev is 0, then the readyRead() signal is emitted when there is data available to read You can then read the data with the read() or readAll() functions


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/10908096.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-12
下一篇 2023-05-12

发表评论

登录后才能评论

评论列表(0条)

保存