Only problem with "fetch the file first" is it would be illegal in most cases.

Each and every image on the Internet has a copyright. While it is legal to _reference_ an image in any HTML page by linking back to the site which hosts the image, it is illegal to copy the image without the express written consent of the copyright holder.



On 04/11/2017 08:22 PM, interest-requ...@qt-project.org wrote:
On Tuesday 11 April 2017 16:05:57 Jason H wrote:
I am looking for a way to get the original pixel data from a Image element
into QImage. A few ways just grab the image as rendered (returning less
data if scaled down) but I want the full image.

I don't mind loading the pixel data for myself, but the Image element take s
QUrl, and if passed to QImage(url) nothing except local files load, and I
have to use url().path(). I'd like to pass the full URL to
QImage("https://blah/file";) and have it load synchronously.

Is there any way to do that?
Use a QnetworkAccessManager to fetch the file first.

Cheers,

Sean

--
Roland Hughes, President
Logikal Solutions
(630)-205-1593

http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
http://lesedi.us/

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to