Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. QuickDownload - easy file download with Qt QML and C++
Forum Updated to NodeBB v4.3 + New Features

QuickDownload - easy file download with Qt QML and C++

Scheduled Pinned Locked Moved Showcase
4 Posts 3 Posters 5.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larpon
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    5
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Nice one :-)

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sreek
        wrote on last edited by
        #3

        Hi Larpon,
        I have followed the steps and i did not see the file downloaded to the destination or i did not see the file request on my server also.
        How can i trigger the download from the JavaScript?

        Thank you..

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sreek
          wrote on last edited by
          #4

          I got it working.
          Thank you :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved