Search code examples
c++qtqfile

return QFile::copy from web


When moving files around locally within my project I'm able to use

return QFile::copy(fromPath, toPath);

I need to do something similar but with the fromPath being located on the web.

What is the best way to accomplish this?


Solution

  • QFile works with local file only.

    If you want to copy remote file from web, then you need to download it using QNetworkAccessManager