Of course, having to alter the source code in order to download another file is far from an ideal approach, so try to extend the dialog by adding a line edit in which you can specify the URL you want to download. Also, you can offer a file dialog to choose the location where the downloaded file will be saved. The simplest way of doing that is to use the QFileDialog::getSaveFileName() static function.
Have a go hero – Extending the basic file downloader
Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.