> Sent: Tuesday, April 11, 2017 at 10:19 AM > From: "Sean Harmer" <sean.har...@kdab.com> > To: interest@qt-project.org > Subject: Re: [Interest] Getting a QImage from an QML Image, protocol agnostic > QImage? > > 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.
Heh so simple, it's genius. Supported schemes: ("ftp", "file", "qrc", "http", "https", "data") It's missing "image" would it make sense for that to be part of QNAM? _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest