QuickDownload - easy file download with Qt QML and C++
-
QuickDownload
Easy way to download files with Qt QML and C++
Project
https://github.com/Larpon/QuickDownload
Features
- Asynchronous downloads
- Supports Qt URL schemes (http, https, ftp, custom)
- Uses QSaveFile = no corrupt or partial file downloads.
- Possible to set custom NetworkAccessManager via C++
- Self-register QML type. Plug'n'play. (can be disabled)
- install via
qpm
, linked or plugin
Install
https://github.com/Larpon/QuickDownload#install
Usage
https://github.com/Larpon/QuickDownload#usage
Quick QML example
import QtQuick 2.0 import com.blackgrain.qml.quickdownload 1.0 Item { Download { url: "http://placehold.it/350x150" destination: "file:///tmp/test.png" running: true followRedirects: true onRedirected: console.log('Redirected',url,'->',redirectUrl) onStarted: console.log('Started download',url) onError: console.error(errorString) onProgressChanged: console.log(url,'progress:',progress) onFinished: console.info(url,'done') } }
Happy downloading!
-
Nice one :-)