QProcess and curl aren't working
-
Hi, I'm trying to download a file with QProcess, but I have a problem.
The old "deprecated" way, it works fine, but the new one, it doesn't.
Here's what I'm trying to do:QProcess dlPT; QStringList command; command << "-O" << "\"https://dl.google.com/android/repository/platform-tools_r33.0.2-windows.zip\""; //here's probably the issue dlPT.setWorkingDirectory(getUserPath() + "/AppData/Local/Temp"); dlPT.start("curl", command); dlPT.waitForFinished(); update("finished"); stopRunning();
I tried just
command << "-O \"https://dl.google.com/android/repository/platform-tools_r33.0.2-windows.zip\"";
, but that didn't work too.What am I doing wrong?
-
Hi,
Why are you inserting double quotes for your URL ?