How to download an image from a .php page?
Solved
General and Desktop
-
I am using QNetworkAccessManager to download images which I display in a label widget.
This works for images that have an url ending with the file type:QNetworkRequest request(QUrl("http://my-url.png")); manager->get(request);
@ Slot:
QPixmap image; image.loadFromData(reply->readAll()); ui->lblPic->setPixmap(image);
But some of these images are on a .php that returns a png image, and this doesn't work for those. So how would I make it work for those?
Thanks in advance.