I’m having issues creating a QImage from a base64 string that has been compressed using qCompress. I’ve looked around a lot and can’t seem to find any examples anyone using qUncompress. Python is not my forte in any way, so I apologize if this is a simple question.
That’s because QImage.fromData is a static method.
So you don’t actually have to create an instance of the QImage, instead thing of fromData as an alternative constructor (which it is).
Thanks a lot radianceforge. I had been look for a while to do uncompressing of PNGs mostly for reading the Substance File Thumbnails. Tried a lot but never new about qUncompress. Just beautiful.