开发者

Download many files in QT

I want to download some files using QT but I don't know what's the best way to do it. I was thinking of a DownloadQueueItem that will manage the QNetworkRequest/QNetworkReply for each file and a QList, where I will insert the DownloadQueueItems in order to be able to delete them after they download.

Is my thinking correct? Could you show how you would do it in c开发者_开发技巧ode? Thanks!


The easiest thing to use is the QNetworkAccessManager. It will take a request, download it and emit a signal when it's ready. See for sample code and documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜