not able to download file from URL
Unsolved
General and Desktop
-
i was following this answer on stackoverflow
When i run the code i get an empty document with URL as it's name
If you have better link or suggestion on how to download image from URL please share it
-
Hi,
You should also connect the error signals and see what you get.
-
Have you manually double-checked if the link is correct? Print it out using
qDebug()
or something similar. Also, as SGaist said, the error-messages will probably give you a good hint of what's going on. -
QNetworkRequest req(url);
reply=qnam.get(req);
QObject::connect(reply,SIGNAL(finished()),this,SLOT(slotFinished()));
4/4